Most voted "css" questions
Cascading Style Sheets (or simply CSS) is a style language used to define the presentation of documents written in a markup language, such as HTML or XML. Its main benefit is to provide the separation between the format and content of a document.
Learn more…8,314 questions
Sort by count of
-
0
votes1
answer37
viewsProblem navbar bootstrap in Wordpress
A customer asked me to increase the size of the navbar, so far so good. I increased and had no problem, however, when I go down the page and rise again, the navbar goes behind the slider.…
-
0
votes1
answer42
viewsWhen I resize the viewport, the image moves to the bottom of the page
The site has a center image and a small text. When I resize the page, it adjusts (responsiveness). When it reaches a certain point 350-400px approximately, the div with the image and the text…
-
0
votes2
answers360
viewsPage mode landscape does not fit
I put a photo of the background, being 100% tall. When I open the site by mobile (or Chrome/Firefox console) in landscape mode, the image background does not take up all the space. In desktop mode…
-
0
votes1
answer56
viewsDoubt about loading images in CSS
I would like to optimize the loading of images from my site according to the size of the device that accesses it. My idea is to use media querys in css and depending on the device resolution load a…
cssasked 8 years, 2 months ago Joao Paulo 11,760 -
0
votes1
answer94
viewsCreate a triangular-tipped Listview in Javafx application
I am developing a Javafx application, and I want to make a menu from a Listview, which will be triggered from a button pressed, but I would like to put a triangular tip at the top of this menu as…
-
0
votes1
answer608
viewsContent loses formatting when viewing the Asp.net mvc print
I have a page for printing, it was made with bootstrap, I would like to keep the layout with the same formatting, I am doing this way: thanks <script> function cont(){ var conteudo =…
-
0
votes1
answer415
viewsHow to create arrow-shaped edges on the sides of a div
What I got is this: html, body { margin: 25px; } .arrow_box { position: relative; background: #88b7d5; border: 4px solid #c2e1f5; width: 200px; } .arrow_box:after, .arrow_box:before { bottom: 100%;…
-
0
votes2
answers881
viewsChange div background on Hover
I can’t change the background of the div when I hover over, in case I want to change the background of the circle. <div class="col m3"> <div class="center promo"> <div…
-
0
votes2
answers23084
viewsCentralize DIV
How do I center this div : .centralizar { width: 80%; background: #fff; }…
-
0
votes2
answers437
viewsDisable Bootstrap Collapse after first click
I have a page, on which I applied the bootstrap class Collapse, where when clicking it expands a certain area and the page scrolls to that part of the site. I want, when clicking and expanding this…
-
0
votes1
answer1474
viewsHow to set 100% height between a navbar and a div (responsive)
I’m having trouble defining the height of an html content, with css and bootstrap. I am developing a web application in want to have a map that occupies almost the whole screen. The map will divide…
-
0
votes1
answer992
viewsHide widget when printing page
I have a product report page that converts it to pdf using wkhtmltopdf. My problem is when generating the pdf I want to put a div with a banner at the end of category, if the category does not…
-
0
votes0
answers164
viewsPlace an image.jpg as the maximized background
<head> <link rel="stylesheet" href="stilo.css"> </head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Gleriston</title> <body…
-
0
votes0
answers91
viewsclip-path with Firefox problems
I’m using the clip-path technique to make a polygon in a certain area of the site: .cliped { -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 75%); -ms-clip-path: polygon(0% 0%, 100% 0%,…
-
0
votes1
answer121
viewsHow to modify CSS inline after page loading?
Good, I’m doing a database query, where there is a field that has html content. Inside this content is a table, which has some CSS applied inline with a width defined in px. I need to change the…
-
0
votes2
answers211
viewsChecking if element is visible with jQuery
I need to check the attribute visibility of a div. if ($('#divFiltros').css('visibility', 'visible').val() == true) { alert(true); } else { alert(false); } How do I check and get into this if of the…
-
0
votes3
answers222
viewsDisplaying disabled checkbox value
Hello, I created a very simple system where I enable 10 values of 25 and I want it to display with an innerHTML those that are disabled, I made this system with checkbox and I put them in variables…
-
0
votes2
answers889
viewsChange the font in wordpress.com via css
I’m trying to change the font of a site hosted on Wordpress.com. In the archive css, I do the source on the first line of the code: @import "//fonts.googleapis.com/css?family=Lekton"; Then I…
-
0
votes1
answer143
viewsCSS for A and B messages
I have the following span with messages exchanged between a user A and a B. How can I configure these spans to appear each on your line. The way I got the style of span it overwrites messages on the…
cssasked 8 years, 10 months ago David Concha 539 -
0
votes1
answer29
viewsOpen page directly on a given slide
I have a page that is entirely a slide, just with the menu next to it. I would like to know how to open this page directly on a given slide. I have tried the common and best known method, adding an…
-
0
votes5
answers666
viewsUpper DIV occupying entire screen
Guys, I got this: <div class="tudo"> <div class="superior"></div> <div class="inferior"></div> </div> I want the top div to occupy the entire screen independent…
-
0
votes3
answers425
viewsFormat CSS with PHP
Hello I’m displaying an HTML content with CSS formatting using PHP print_r, but I’m having doubts when the simple quotes, I opened the STYLE with simple quotes, but inside the image selection has 2…
-
0
votes2
answers61
viewsAdapt css to viewport
How do I adapt my website to the size of ViewPort? I have a good resolution image and I would like it to adapt to the screen size, without the scrollbar.
-
0
votes1
answer229
viewsCheckbox not clickable
I want to make the checkboxes of a specific page on my site visible, but not clicked, where the user can only interact with them after logging in. Is there any CSS solution for this situation in…
-
0
votes1
answer768
viewsCatch the height of an image
In my project, I have an image that as the screen goes down 1000px, 860px, 320px, etc the image also changes its height. How to do to catch the height at the time of display? I need to know this…
-
0
votes3
answers428
viewsCSS right in the HTML tag
I have a question today regarding CSS Sometimes it is more feasible to put CSS code directly in the HTML tag and I wonder if this is a bad practice How do I proceed with this doubt? It’s really bad?…
-
0
votes1
answer72
viewsMultiple Conversion SCCS > SASS
Hello, Previously, in a project of mine, I did more than two hundred files. scss, and recently adapted to the use of .sass. I wonder if it is possible to convert all these files at once, instead of…
-
0
votes2
answers866
viewsScroll bug when opening a modal on top of another
When I click on Menus link http://www.escolatarsiladoamaral.com.br/home (goes to the restricted area, login: admin and password: admin) it opens a modal usually, with the scrolling and everything,…
-
0
votes4
answers6145
viewsCharacter limit in a DIV
How can I limit the amount of characters that will be inserted into a div ?
-
0
votes1
answer1110
viewsDiv Fill blank space
Hello, I need a help to line up div. As you can see in the image: The div does not occupy this blank space, but wanted it to occupy this space,. The tables are distributed this way: Thank you in…
-
0
votes1
answer171
viewsPadding x position:Fixed or position:Absolute
I need to use the padding to leave a spacing between the edge and the center but when I use padding the div this moving any have any idea? http://yugioh.site/layout.html css html, body { height:…
-
0
votes1
answer98
viewsIndentation SASS 2 spaces?
Hello, Recently I am using Sass without any front-end automation due to company guidelines and I usually work with the format . Sass, but I’m having problems with the identations of the same, always…
-
0
votes1
answer430
viewsjQuery conflict with Angularjs
I’m having a problem with AngularJS and jQuery. When I only use jQuery in the layout, the menu (sidebar) I have opens normally. But when I add Angularjs the menu does not open anymore, it is simply…
-
0
votes1
answer491
viewsCSS problem with friendly url
Guys, I’m studying friendly urls and I came across a problem. Every time I put a / (slash) at the end of the url, the css disappears and the page gets pure html. I would like to understand what is…
-
0
votes0
answers465
viewsHow to disable Nav-tabs bootstrap with php
I’m trying to disable some nav-tabs that I have with an action in php, but I’m having trouble executing this action completely, until I was able to disable the nav-tabs with that code…
-
0
votes2
answers109
viewsGood development practices (Use of Float, Brs, Api)
I would like some views on best practice in development, because I am an amateur in the subject and I would like you to clarify some doubts. When I am working on the layout I use many BR tags and…
-
0
votes2
answers2311
viewsHow to Make Dropdown Menu with Pop-up Effect
$(function () { $(".menu2").hide(); $(".open").stop(true, true).mouseover(function() { $(".menu2").fadeIn(100).animate({ top: '-50' }, 400); }); $(".open").mouseleave(function() {…
-
0
votes1
answer88
viewsLike putting more than one drag and drop on the same page?
I have to put several drag and drop on the same page. I took an example and played in my application. Well it works. However when I try to insert one more of the same element, this second drag and…
-
0
votes1
answer86
viewsItem from the list of selected files in the input is not removed
Guys, I use the codes from the link below to make a list of files I selected from an input type "file". So far, so good. When you remove an item from the list, apparently everything happens…
-
0
votes0
answers695
viewsClick the menu does not work on mobile
I made a responsive menu that in the browser works, but on smartphone I cannot click on the child link. Example user menu --> create. When I click user it opens the options (list, create and…
-
0
votes1
answer62
viewsI run with different images on mobile and desk
Good morning, everyone, I’m developing a responsive site, in it I will use a standard bootstrap carousel, however, will be different images when the carousel is on mobile and desk. Does anyone have…
-
0
votes2
answers142
viewsStyle sheets (js,css) in subdomain or in a folder within the application?
I’m having a question. I think someone’s been through it some day too. I always loaded my styles inside a folder in my application: Ex: http://meudominio.com.br/assets/css - ou js e etc Observing…
-
0
votes2
answers686
viewsChange position image with transition when mouse over it?
I want an image that’s on float:right go to float:left, but with some kind of transition.
-
0
votes1
answer47
viewsProblems when defining width in div, tab system
Guys I created a simple tab system, using css,html and jquey. However I’m having a problem defining the width flaps. To make it easier to explain I’ll post the code here: function corrige_altura() {…
-
0
votes1
answer3737
viewsCustom Alerts and Prompts
Good evening, everyone, I’m working with Apache Cordova, which basically uses WEB language (html, css, javascript...) to make Android apps, iOS, among others. I need to make use of custom Alerts and…
-
0
votes0
answers314
viewsProblem with width: 100% responsive image in bootstrap 3 for mobile devices
I have a problem that at first is very basic, but I’ve tried everything that is way and is not working The problem only occurs when opening the site on the smartphone.. if I simulate the resolution…
-
0
votes3
answers114
views"content: attr" does not validate in W3C
How to resolve this error on the line table td:before {content: attr(db); which makes it worthless in the W3C? <!DOCTYPE html> <style type="text/css"> table {width:100%; border-collapse:…
-
0
votes1
answer75
viewsCSS / jQuery - How to select the next element after main?
Basically, I’m giving a margin-top on the first content after the header, according to the header size. The problem is that each page of the site has different elements after the main (div or…
-
0
votes1
answer47
viewsMobile version bootstrap maladjusted
I have the following HTML structure <!-- Page Content--> <main class="page-content"> <!--- Lojas ---> <div id="lojas"> <div class="col-md-5 text-left lojas-coperfarma">…
-
0
votes1
answer790
viewsVertical dropdown menu - Bootstrap
I’m making a page where there’s a dropdown menu and each menu item changes the contents of the left div. My problem is that when you click on this menu and it shows your submenu, it should play…