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
answer1768
viewsHow to increase height as scroll scrolls down the page but not decrease with scrolling up?
I’m on a single-page project, and I need a div that increases as I scroll down, but when I scroll up it can’t decrease, it has to stand still, the size it was until it went down again. I am using…
-
0
votes1
answer2967
viewsBreak line into links
I’m developing a mobile site and I’m having a problem, when I have a very large link (no spaces or '-' hyphens), it doesn’t "break" and leaks the layout. There’s a way to fix it?
-
0
votes2
answers366
viewsHow to Overwrite an Image with DIV
Gentlemen, I’m pulling some images from the database, and when the user hovers over them an opaque red color will be above them, and a title and text will be shown. I did this by putting the image…
-
0
votes1
answer138
viewsHow to change the color of links with the user’s click?
Hello! Well, I have a Topbar on my mini search site: http://isearch.baloon.url.ph, And now I’ve got a Javascript form action exchange system, which switches between "web, images, videos and news".…
-
0
votes3
answers446
viewsHow to let a div 'Fixed' be limited by a main div?
I’m trying to do something like this: https://www.chipart.com.br/computadores/monte_seu_pc where the div containing the purchase values is fixed only while the customization options are visible, but…
-
0
votes1
answer269
viewsFooter buttons like the old Symbian with Twitter Bootstrap
I’ve been tasked with making a mobile web app, and I’m trying to do it with the help of Twitter Bootstrap. One of the tasks is to make a pair of buttons in the footer, both of equal size, each…
-
0
votes2
answers750
viewsHow to apply colors to an image through a color palette without Flash?
A client asked me if I could make a system like this. Could someone give me an idea of how to do this without Flash? It has a cup with a detail and the two objects will receive different colors…
-
0
votes1
answer1119
viewsHow to style, with CSS, a SELECT that is inside PHP?
<?php include "conexao.php"; $sql = "select * from categorias"; $dados = pg_query($sql); $resposta = ""; while($linha = pg_fetch_array($dados)){ $nome_categoria = $linha["nome_categoria"];…
-
0
votes1
answer600
viewsHow to automatically select menu item?
I have the following code: http://jsfiddle.net/xktjk03w/ HTML: <!DOCTYPE html> <head> <title> Teste </title> </head> <body> <div class="navbar navbar-inverse…
-
0
votes1
answer1512
viewsHow to make a div that expands and shows hidden content?
I want to make a block that expands down giving party information and events, but I’m having a lot of trouble because I don’t know how to do 2 divare activating at the same time the mouse over. this…
-
0
votes2
answers306
viewsDo not select, dynamically, always the last li in the hierarchy
Note the HTML and CSS below. This is the initial CSS ul ul li:nth-last-of-type(2){ background: #ff0000; } <ul> <li>bla <ul> <li>bla bla <ul> <li>bla bla…
-
0
votes1
answer84
viewsTab system does not work on mobile
I am creating a mobile site and in a certain part there is a system of tabs. The system is pure css that I found on the internet... The problem is that when the site is viewed by mobile, the tabs do…
-
0
votes1
answer173
viewsMaking width: Webkit-min-content responsive
I have a simple HTML fragment: <div> <img src="http://www.placehold.it/200x200"> <p>Lorem ipsum da dee da herp de derp I like coffee coffee coffee</p> </div> My CSS:…
cssasked 10 years, 1 month ago Nick Manning 101 -
0
votes1
answer265
viewsInsert into table and then click using Jquery
I am inserting dynamically in my table, until then everything ok. The problem is when I try to click on one of the lines and I have no answer, I think I’m not entering in the DOM, someone could help…
-
0
votes1
answer89
viewsProblem with Twitter Bootstrap
I’m wanting to do on my website, something similar to this model: http://livedemo00.template-help.com/wordpress_49159/#homepage I’m just having trouble positioning the image between a div and…
-
0
votes1
answer433
viewsWidth of a <td> is not of last size
Good afternoon, I’m having a question here in the form mounting using and varied. i have the following table: <table> <tr> <td>Nome:</td> <td>Senha:</td>…
-
0
votes1
answer182
viewsLeave the selected image with opacity higher than the others in a gallery
I have a simple gallery, and when you select an image, that same image is loaded via ajax in a div that is positioned next to that gallery. When I select the image only the image changes, only I…
cssasked 10 years ago ivan veloso 2,900 -
0
votes3
answers2063
viewsProblem with Div scrolling when running Zoom
Dear friends, I’m putting together the standard layout for some pages I’m developing, but I’m still a beginner in html and css pages. In my code, the footer tag moves from the main div when I zoom…
-
0
votes1
answer333
viewsHow to style the general scroll bar of the site?
I was looking at some templates online and I was curious about this one. His scroll bar is not part of the browser so I see it but the DOM. How is that?…
-
0
votes1
answer423
viewsTransition with single page anchors Applications
How can I implement a smooth scroll transition effect through anchors using Jquery? The template below shows an example of a scroll transition I’m looking for. http://www.aimyapp.com/ I would like…
-
0
votes1
answer1035
viewsWhen to use PX or % in positions?
On internal layout elements, to position in margin or coordinate, when to use PX and %?
-
0
votes1
answer154
viewsProblem with box-Sizing
I have a input and would like to put a box-sizing 'cause I’m gonna use padding-left and would not like to touch the width of the element. My HTML: <div class="contato"> <form> <input…
cssasked 9 years, 11 months ago Felipe Viero Goulart 3,693 -
0
votes0
answers77
viewsBrowser Chrome x IE Wordpress
I have some sites on the same server with wordpress in which appear with loading error of certain images, recently I changed a flag on Chrome because some sites like facebook were not loading…
-
0
votes1
answer48
viewsSite introduction layer (float div)
I need to find a solution where I open a layer to place advertising that automatically closes if the user doesn’t do anything. Is there a script you can recommend? I wonder if you could help me with…
-
0
votes2
answers104
viewsHow to hide empty query post?
I created a Query post for a certain category <div class="querypost-home" id="conteudo-home4"> <?php $args = array( 'category_name'=>'oportunidades', 'numberposts'=>1, 'offset'=>3…
-
0
votes1
answer187
viewsDoes Transition not work with Javascript?
I have a dropdown menu made by me that acts with very simple class exchange(block or none). The script works and updates classes in the right way, but apparently it ignores the property transition…
-
0
votes3
answers134
viewsMenu with the themes
I’m having a little trouble. I have a menu in html and css and I want to put it this way. Text - text - Logo - text - text Html: <div id="nav"> <ul> <li><span class="Email"…
-
0
votes3
answers179
viewsCSS, center split line between left and right
I own a div, welcome-inputs and within it two other left and right To left needs to be on the left side of welcome-inputs and the right on the right side of welcome-inputs. They both have width =…
-
0
votes3
answers2658
viewsDiv responsive with image and other elements inside
I’m creating a website mobile with design responsive. Within a div have a slideshow which shows 300x300 images, I need to make this slideshow responsive without touching the attributes width and…
-
0
votes1
answer115
viewsBrowser only responsive HTML page
I created a responsive html page, to run mainly on smartphones. However, on portable devices, in vertical position (standing), the background image does not "resize". Already in the browser, if I…
-
0
votes1
answer1052
viewsDeveloping Theme in Wordpress - Widgets do not appear
I’m trying to develop a theme, from scratch, in Wordpress, accompanying video lessons. The problem didn’t just happen to me, there are people commenting on the same problem that is the fact that,…
-
0
votes2
answers89
viewsCss in different resolutions and browsers
I have the componente1 and the componente2 follow the example: body { margin: 0; } .componente1 { width:250px; float: left; background-color: green; height: 340px; } .componente2 { width:250px;…
cssasked 9 years, 11 months ago valdir silva 89 -
0
votes2
answers108
viewsComment area overlapping the footer of the site!
Hello, I have a comments area on my site that I made using the Facebook API. The problem is that when someone sends a comment, it overlaps the footer layout. I’ve tried using position: relative,…
-
0
votes6
answers2500
viewsHover on DIV1 change DIV2 with CSS
If I have a #div1 and a #div2, and they are brothers, I know I can use the dial ~ to stylize the #div2 as follows: #div1:hover ~ #div2 { /* regras */ } Is there an equivalent selector to style the…
-
0
votes1
answer180
viewsMake text appear under box
I have an X3D animation box <X3D> ..... </X3D> <p> ..... </p> and I want the text to appear underneath this, instead of this: How do I do it? Thank you.…
-
0
votes2
answers45
viewsAssign ownership of five out of five elements
I have a gallery that will repeat, every five photos, it jumps down. Only when the element is the fifth, or =5, I want you to apply a margin-right=0. My HTML: <ul class="galeria">…
cssasked 9 years, 11 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer192
viewsHow to switch txt message according to the field’s Focus
In that question I saw how to read the .txt ~> Read txt Now I want to know: In case I leave a field on phocus, and is about the message of tooltip, it must show a message concerning that field.…
-
0
votes2
answers162
viewsCentralize page numbers
I have the following pagination: < 1 2 3 4 >. Perfect, what happens is that this page is in the middle of the page. I can center the div which will contain these numbers, but how to do to…
-
0
votes1
answer473
viewsBackground-color from Lection does not work
I have the following CSS: *::selection {background-color:red;color:blue;} *::-moz-selection {background-color:red;color:blue;} *::-webkit-selection {background-color:red;color:blue;} Where, any part…
cssasked 9 years, 10 months ago Felipe Viero Goulart 3,693 -
0
votes4
answers359
viewsmargin:auto; how to apply in this case
I’m having trouble trying to centralize Ivs that are located within a mother div, their "children" are in float, but I wanted to centralize them using margin:auto; how can I do? Follow my little…
-
0
votes3
answers58
viewsIncrease spaces when we decrease page
I am creating an HTML5 page where I want to put the correct page size for all types of use, IE, the page appear correct regardless of the screen size. When I reduce the HTML page this happens: In…
-
0
votes1
answer156
viewsUse jquery to control scrolltop
I have a div .menuFixo, that when it reaches 31px scroll she stay with top: 0, otherwise, stay top:31px, I did with Jquery, but it didn’t work. $(window).scroll(function () { if…
-
0
votes1
answer331
viewsCSS, firefox does not recognize Bree Serif font
I use google sources, however I got the surprise today when I went to test my files in firefox and realized that the source was not loaded. See http://jsfiddle.net/xrckh1db/ @font-face {…
-
0
votes0
answers797
viewsDecrease the height of a div
Guys I want to make a change at the time of div on my site, however I don’t know exactly where to edit, I’m new with Wordpress and I don’t understand much of programming and I’m kind of lost.. Is…
-
0
votes1
answer6928
viewsPosition content within Navbar Bootstrap
I am using and remodeling a navbar whose template is made by the Bootstrap site itself but after making insertions of the classes I thought able to position the objects noticed that they were not…
-
0
votes1
answer2049
viewsCSS in Chrome does not work properly
I am programming in PHP, HTML and Javascript to create an online store, integrated in the Opencart platform. Everything is already working correctly, except a small detail with CSS. I put the effect…
-
0
votes1
answer95
viewsPrevent elements from breaking down within an overflow
How to leave a div with Divs daughters with overflow, without breaking the content? I’m setting up a binary tree viewer, and I need the Ivs to never break the line. In the code I’m working on, by…
-
0
votes2
answers20112
viewsHow to add a horizontal scrolling in CSS?
Like, for example, on the Netflix website when movies are rolling horizontally.
-
0
votes1
answer163
viewsmin-height, doesn’t work on mobile what do I do?
I’m developing a desktop and mobile site, but when I’m on mobile, I have to decrease the height of the slider on the right mobile, however when I put min-height:250px ! Mportant, it won’t , even if…
-
0
votes0
answers28
viewsApplying effect to scrollar mouse
I’ve separated my website by sessions: <section id="parte1"></section> <section id="parte2"></section> <section id="parte3"></section> And I’d like to apply an…