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
-
5
votes3
answers2440
viewsHow to call scripts in a child Wordpress theme?
I’m trying to build a Wordpress template. What I can’t do yet is call the script in the child theme I created. CSS worked, but the scripts didn’t. There are several, and I got lost in how to put…
-
5
votes2
answers262
viewsHow to use fadein() in addClass()?
I have ten "Id" class elements, minus the first. By clicking a button I remove the next Hide and add the class "show", but when adding it I want to put a fadein effect(). It is possible?
-
5
votes1
answer436
viewsProblems with @font-face from the same family
I’m having a problem regarding CSS3 Font module. I got a source with three guys: Bold, normal and Italic and insert them into the CSS with the same name but with the attributes referring to the…
-
5
votes1
answer190
views -
5
votes2
answers1901
viewsEvent click Jquery in selector . class
I created several div by using jQuery to assign them the CSS class numero: for(...) textoHTML += "<div class='numero par'>"+sorteado+"</div> <!-- numero par-->\n"; ... textoHTML +=…
-
5
votes1
answer298
viewsProblem setting CSS within style
I am facing a problem. I want to put all my CSS inside the Style tag as it shows my code below: <style> input[data-column="1"] { display: none; } input[data-column="2"] { display: none; }…
-
5
votes1
answer1015
viewsScrolling Effect with Parallax Using Video
I’m studying effects with Parallax and I’m trying to display a video in the background instead of an image. So I was able to create a good effect using image as background. Here is my code jQuery:…
-
5
votes2
answers97
viewsRemove banner depending on window size
I’m using a template with the Responsive layout. I have a banner on the right side of a website. What I’m doing is scrolling the page and the banner goes with the page. When I scroll down, the…
-
5
votes4
answers5885
viewsHow to smooth the font with CSS in Chrome?
I have a "crackle" font problem in Chrome, IE, it seems that the tips are pixelated. To help, I’m posting two images IE: Chrome: My CSS calling the source: @font-face { font-family: "Helvetica-nw";…
-
5
votes2
answers114
viewsGood practice with css selectors
What is the best practice for working with css selectors? Use .menu li { } ou .item {} .menu .item { } ou .menu-item { } //aqui usamos para atribuir propriedades para as <li> por exemplo How…
-
5
votes2
answers937
viewsHow to animate the layout of Divs and caption, when doing Hover in one of these elements?
I’m creating a website, I’ve been asked to play a prank on the team. According to this image, when :Hover in one of the parts, all the text and image are ordered: I don’t know how to take this boot…
-
5
votes1
answer5119
viewsTransition effect on jQuery
I’m starting in jQuery and I have a question: is there any way to let the change down with a kind of transition? <html> <script type="text/javascript"…
-
5
votes2
answers671
viewsSelect with transition in change with onchange
How to add a transition effect (fade) in a select with onchange, that when the object <div> change the same occurs a transition? Below follows a print table that was made: And this is the…
-
5
votes4
answers6094
viewsSide banner that accompanies the scroll
I wanted to add a side banner, depending on the scroll, the banner would accompany the page. The picture shows what I want to do: But the banner can never cross some boundaries, IE, can not go over…
-
5
votes2
answers230
viewsHow to make a site that fits between 970px and 1300px
I need to make a site that has a minimum resolution of 970px, but that fits up to 1300px wide. Researching, I found something like this: .container-fluid { margin-left: auto; margin-right: auto;…
-
5
votes4
answers8606
viewspopup open only 1 time after being closed, even after reloading page
I wonder how to create one of those popup that usually appear in large portals (not in flash), but with div and javascript pure, which after being closed, the script detect this and it will no…
-
5
votes2
answers5830
viewsHow to make the printing of pages go out the way it is seen on the screen?
I need to make a page that, when the user prints, come out exactly as it is seen on the screen (with the styles), I’m using Bootstrap version 3.1. Is there any plugin in Javascript that does this?…
-
5
votes2
answers692
viewsjQuery - Switching background-image of an element
I have a figure element with a series of images inside: <figure class="MiniModImgSlider"> <img src="img01.jpg" alt="img01"> <img src="img02.jpg" alt="img02"> <img…
-
5
votes1
answer1123
viewsWhy is this Bootstrap Tabs configuration not working?
The code is as follows:: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Site</title> <link href="css/bootstrap.css" rel="stylesheet" type="text/css">…
-
5
votes1
answer276
viewsHow to integrate a select into a table?
I have a table. In Plano 1, I used the jQuery Heapbox plugin, but since I’m not good with Javascript, I didn’t know how to set it up, I would like the select heapbox in Plano 1 to have the same…
-
5
votes3
answers9393
viewsSet CSS according to browser
I found a command to change CSS in Firefox: @-moz-document url-prefix() { body { background: #f00; } } This command will put a red background only in firefox, for example. I found it very useful,…
-
5
votes1
answer9688
views -
5
votes2
answers586
viewsError with CSS, bar appears where it should not
I’m working on a college project where I need to make a website for a pizza place. I’m making an embryo of the site, but when I add the navigation menu, a bar appears on top of the div which should…
-
5
votes0
answers1438
viewsHow to center img within a div?
I am making a grid of images (which will be links to the lightbox), I want 5 images per line, but they have different sizes, so I made the following html for each image: <div class="thumb">…
-
5
votes1
answer51746
viewsAlign multiple Divs horizontally within a container
I have several div with float: left inside another div, which is their container, according to code: <div id="container"> <div id="box-1" class="box">1</div> <div id="box-2"…
cssasked 10 years, 6 months ago Tiago César Oliveira 2,855 -
5
votes2
answers30811
viewsTable cell with fixed size
How to set the width of spine of two tables so that one does not have a cell bigger than the other? When I try to create, the cell of the second table always gets bigger than the cell of the first…
-
5
votes2
answers683
viewsUse or not use CSS/JS within PHP?
Using CSS/JS inside PHP, is there a difference if used in an external file for example? Many pages have CSS/JS in and also externally, it would not be easier to put all together than to split one…
-
5
votes5
answers1182
viewsHTML element does not become visible
I have the following HTML: <form action="cadastro/cadastrando.php" method="post"> <div class="elemf"> <label>Nome</label> <input id="nome" type="text" name="nome"…
-
5
votes1
answer5160
viewsPin a footer element to the footer
I am doing a job for the college where we were instructed to take advantage of the new semantic tags of HTML5 (Nav, Section, footer, etc). I’m having trouble fixing the footer at the bottom of the…
-
5
votes1
answer3362
viewsHow to create an empty block?
How do I create an 800px high EMPTY+TRANSPARENT block per 1000px width? And because the code below doesn’t work for that? html <div class="block"></div> css .block { height: 800px;…
-
5
votes1
answer58
viewsmulti column adjust content
I’m taking the results from a survey and displaying in a div using column Count width:800px; -webkit-column-count: 3;-moz-column-count: 3;column-count: 3; but I need the column to be closed at the…
-
5
votes1
answer228
viewsBecause when I write in the div she changes position?
I write something in one of the <div> and it changes position. Because? Here this happening: http://codepen.io/anon/pen/JHIjB HTML: <div class = "wrap1"> <div>algo</div>…
-
5
votes3
answers138
viewsDoes every DIV have a relative position?
I heard from a development professional that: "All div is relative even without you define position:relative" That is correct?…
-
5
votes1
answer587
viewsHow do I eliminate the Focus "shadow" from a <button></button>?
After clicking the button this gets a shadow effect (bluish) around the same... I leave an image for you to understand my doubt. How to remove this outer line?…
-
5
votes1
answer9979
viewsCreate a "accordion" menu with CSS only?
Menus in style accordion (accordion) are useful for saving space, since you only open the parts with the content you need. Example of style menu accordion. But all of these menus usually use…
-
5
votes4
answers186
viewsDropdown menu opens partially
I have a dropdown menu using twitter-bootstrap 3 and it is inside a <li class="media">, then each <li> has a dropdown with some actions, it happens when as the height of the <li>…
-
5
votes2
answers12256
viewsModal within a modal
I have a modal that opens on another modal, as I would not allow this modal that is open on the other modal not to close when I click off it. Note: I am using bootstrap, I tried using…
-
5
votes1
answer3583
viewsHow to apply a style to two different elements using :Hover?
Considering: HTML <div id="div1"> <p>Elemento 1</p> </div> <div id="div2"> <p>Elemento 2</p> </div> How can I use the :hover in the div1 to change…
-
5
votes2
answers226
viewsVertical alignment in a div with position:Bsolute
would like to know if it is possible to carry out the vertical-align in a div with Absolute position? Follow the code to analyze: .teste { background: #F00; width: 500px; height: 100px; display:…
-
5
votes3
answers1523
viewsHow to access one selector within another in jquery?
I am trying to access the div’s of the '.contentParagraph' class specific to each of the div’s '.content', so that the events of one div do not interfere with the event of the other, follows the…
-
5
votes1
answer841
viewsProblem Dropdown menu bootstrap
I have my dropdown menu But I always have to give 2 clicks for him to open the menu, I would like on the first click it already opens... You could have had him without the element <a? that’s my…
-
5
votes1
answer214
viewsIs it currently safe to use font-face instead of Cufon and the like?
I am working on a website and I need to use fonts that the user may not have on his machine. Nowadays the most used browsers already support @font-face? From which versions? It is already possible…
-
5
votes4
answers28473
viewsAlign text after image
Hello, I have a problem I don’t know how to solve. This is my situation: But I want it to stay this way: And like I said, I have no idea how to fix. And that’s my code: <div style=" position:…
-
5
votes3
answers3146
viewsTag <img>. When loading an image from the bank it appears lying down
Some photos that are loaded from the bank in my tag <img> appear lying (Landscape), but when I open the image of the PC it is correct in vertical position. This is the part that receives the…
-
5
votes2
answers1406
viewsHover on selector :before
I found myself in a situation, I even know how to get around, doing otherwise, but I wonder if it is possible to use :Hover in an element :before, I have the following structure: <a href=""…
-
5
votes2
answers17919
viewsRemove and add elements depending on resolution
I wonder how I could remove a navbar a certain resolution? Example: in resolution less than 1024x768 one of navbars disappears and another navbar turns the button of toogle? This is done by Less or…
-
5
votes1
answer1368
viewsWhen to use vertical-align?
I am aware that in certain cases it is advisable to use this property instead of text-align , margin or position. But I don’t know why or how vertical-align. Besides, how do you use this property?…
-
5
votes1
answer537
viewsChrome and background Fixed bug
I have the following problem: I have some sections on the page separate in Ivs. Two of these Ivs get an image like background and background-position:fixed, so when scrolling the page the images…
-
5
votes2
answers160
viewsHow do these sites load your HTML?
I ended up looking at source code from sites like Gmail.com and Secret.ly and noticed that HTML is embedded in Javascript, what is this technology that they use? Stay this way: <script>var…
-
5
votes2
answers2907
viewsLimit scrollbar according to div size
Is there any way to limit the barra de rolagem page according to the size (height) of a div? Let’s say I have a website like any other, but when opening one box floating with a height of 1000px, I…