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
-
3
votes1
answer35
viewsCSS mismatch in Firefox and Chrome alignment
I’m failing to leave the same image alignment pattern Hallo-top_fd2.png in the Chrome navigator, where I’m missing? Grateful #container { display: table-row-group; position: relative; align-items:…
-
3
votes3
answers45
viewsProblems centering content when working with flexbox in CSS
I’m trying to learn CSS and I came across flexbox and I’m not getting to work with the tutorials I see on the internet. The goal was to center, axis X and Y, 3 squares on the page, but I could only…
-
3
votes1
answer44
viewsWhat is the CSS selector to change a particular parent class only if it has a certain daughter class
I have the following structure in HTML: <div class="panel"> ... </div> <div class="panel"> <div class="controls"> ... </div> </div> The class panel has some…
-
3
votes2
answers59
viewsHow to maintain a responsive daughter DIV without overriding parent DIV and without using overflow:Hidden
Guys, I’ve been trying to apply an HTML layout for a while but I’m having trouble keeping Divs responsive. Basically the layout I want is this one. However when adding more color Divs Tomato the…
-
2
votes3
answers2650
views@font-face does not work in Firefox, but in IE and Chrome they work
Always use @font-face in my projects and never had this problem. I have doubts if you have a problem with my CSS. The @font-face not working on Firefox. My code is like this. <link…
-
2
votes1
answer5368
viewsHow to make the table header repeat on all pages
I’m trying to print using CSS and I have a table with thead and tfoot, I’m trying to do with this print on all pages the table header, but the result is the same, it shows only on the first page and…
-
2
votes2
answers4360
viewsHow to fix column in table accessible?
I have a table with several columns and I need the first column to be fixed on the table. However, all the "ready" solutions I found create two tables, which is inaccessible. I need the result…
-
2
votes1
answer6036
viewsHow to place a border on a <tr> that appears above the edge of the <td>?
I was developing a screen, which contained a table with a style tr:hover for when the user hovers over the lines of it, they look different. Everything was going well until the moment I decided I…
-
2
votes2
answers1115
viewsStatic jsp content is not shown
I’m using netbeans 7.3.1, apparently it’s working ok. Pages are opening normally, but when I try to access css content, jpg, ... within the Resources folder, no content appears. In the file…
-
2
votes2
answers167
viewsHow to use Jquery Custom Scrollbar on elements with display:None
It does not mount the scroll bar on elements that are "display: None". Does anyone know how to solve? Here the scrollbar plugin…
-
2
votes2
answers415
viewsHow to use css Calc() in safari?
Calc() in safari is not working. I tried prefixes and it didn’t work either. Someone knows a solution? I’m wearing it like this: #myDiv{ width: calc(100% - 160px); width: -webkit-calc(100% - 160px);…
-
2
votes2
answers915
viewsImage Slider with Jquery
I created a small image gallery using this structure: <div class="slider"> <div class="dest"> <img…
-
2
votes1
answer658
viewsSelector or Script to assign different content to elements with the same class
We can assign a title (attribute title), to an element marked in HTML, which has this class, thus: $(".title-texto").attr("title", $(".title-texto").text()); Example of HTML markup with only one…
-
2
votes1
answer369
viewsCSS several backgrounds
I have this code, and I don’t understand why it doesn’t work, what I wanted was to have two backgrounds one in the top center another bottom center. but it only works at the bottom and it’s not…
-
2
votes1
answer119
viewsHow to add a class to a div when it is active, so it changes color?
I’m making a Bootstrap-based website, where I have a portfolio zone, where thumbnails open a collapsible DIV. I need that when a collapsible DIV is open, the respective thumbnail changes its CSS…
-
2
votes2
answers3896
viewsChanging the color of a HTML5 <Progress> element
I need to change the color of a Progress bar (tag <progress> HTML5) with CSS. The default of Google Chrome is like this: But if I try to style with css gets like this: How can I leave the…
-
2
votes3
answers16599
viewsFixed div when scrolling down page
I’d like to know how to leave one div fixed on the side when scrolling the page down. What I want to do is exactly like the side newsletter of that page.. . When rolling down you’ll understand…
-
2
votes3
answers88
viewsHow to always leave 20px margin at the bottom of the page?
I have the CSS on body: margin-bottom: 20px; But always Uga, for example, if I use position: absolute; he loses that margin of 20px. How to do it in other ways?…
-
2
votes2
answers121
viewsAdapt boxes to mobile layout
Hello, I have a layout that resembles this I use Bootstrap on it.. When hitting a particular breakpoint it gets a format similar to this one I want to do the following effect, when the layout…
-
2
votes1
answer157
viewsInverted animate from a "close" button
I’m developing a Animate with JS and CSS, which when clicking the button, the element does the bounceOutLeft and Right, and so shows the hidden content. The animation is working, however, how to…
-
2
votes1
answer314
viewsWrong width in Chart div
I am trying to make an effect, when I choose an option in select, I show the corresponding div with highchart. Has 2 problems: 1- Width of Chart is not correctly completing width of div. 2- I’m not…
-
2
votes2
answers48943
viewsHow to change the color of a single link?
How to change the color of a single link? I’ve tried to go on "Modify - Page properties - Links", however the settings that are put there go to ALL links, and is not what I want on my site.…
-
2
votes1
answer1707
viewsPlace border in split div
I’m trying to put a box around my form. So far so good, but now when I intend to divide the form in half this same box around the form ceases to work. <div class="formCreate " style="width:…
-
2
votes2
answers651
viewsUse or not use table
I need to position controls Abels, exactly one below the other and sometimes beside. I do this with table, but ask. Is there another way to do this and give a result similar to table? Table is…
-
2
votes2
answers1834
viewsHow to separate text icon in a <div>
I’m creating an element for my site (which is responsive), but I can’t leave the elements apart. Below are some prints: How are you: How I want it to stay: EXAMPLE - Jsfiddle…
-
2
votes3
answers1882
viewsHow to use Fixed position within a div?
I have a div who has yours header and its content that has a height fixed and this has scroll. How to put position: fixed in the header (where is the title), without it moving when the scroll go…
-
2
votes1
answer158
viewsCheckbox that pulls content from a custom post type
I have a custom post type knits (here will be registered all knitwear products) and have another custom post type products (where will be listed all products). What I would like to do: in this…
-
2
votes1
answer530
viewsHow to clean the Bootstrap stylesheet (CSS)?
I own a site that uses Bootstrap, however, in this site there are many classes and id’s that I don’t use. This makes my site very heavy for nothing. What can I do to delete all these useless classes…
-
2
votes1
answer368
viewsHow to embed multiple classes into one in CSS?
Use Bootstrap and it has the following classes for tables: .table .table-striped .table-bordered .table-hover .table-condensed In my application I have several tables. For easy maintenance, I…
cssasked 10 years, 6 months ago user7261 -
2
votes1
answer2632
viewsBootstrap - Merge lines
How do I make Melclar two or more cells in Bootstrap? I’ll post the code: <div class="container"> <div class="row-fluid"> <div class="span4">4</div> <div…
-
2
votes2
answers2929
viewsOpen tab after loading
I am thinking of doing this using jQuery and I used some methods already available on the internet but they are not working. I tried to modify it more I think I’m doing it the wrong way. What I want…
-
2
votes1
answer80
viewsProblem overlay @media
I’m having a hard time understanding something. I’m putting together a quiz and when the person doesn’t select any alternative one appears box box with overlay saying that it is for her to select.…
-
2
votes1
answer6245
viewsHow to use bootstrap for font sizes?
I would like a didactic answer on how to use Bootstrap to determine font sizes. To help, I am using exactly the following medias-queries: /* Portrait tablet to landscape and desktop */ @media…
-
2
votes1
answer126
viewsApply CSS when in the menu in question
I would like to leave a selected item when I am in some selected menu. For example, if I am on the link '/about'. The menu item called 'about' should change color, for example. You could do this?…
-
2
votes3
answers1666
viewsHow to view a dropdown menu of a button inside a div with overflow: Hidden?
I have the following problem: by clicking on the dropdown button inside a div with overflow property: Hidden it opens, but gets cropped. Example: HTML <div class="scroll"> <div…
-
2
votes1
answer135
viewsDifficulty positioning controls with bootstrap
I have a cshtml, that needs to position some controls. I positioned a table on the left side of the document. Now I need to position several controls labels next to the table and these labels one…
-
2
votes1
answer2156
viewsFixed Div when decreasing the screen
I’m developing the following website: http://173.44.46.62/~bellanap/pedidos.php but when you lower the screen, the div where the form is breaking. It needs to be fixed. Help me?…
-
2
votes1
answer73
viewsCreate 2 elements influencing the same CSS
You can create a hover effect with two elements influencing one in common ? for example: #div:hover "ou" #div2:hover = #elemento{display:block;} I made myself clear ?…
cssasked 10 years, 4 months ago manzetti.denis 475 -
2
votes2
answers9687
viewsWhat is the difference between the <span> and the class?
While studying XHTML, I understood that the <span> is an inline element. A class will be a block element. But when to use one and the other? Besides them, when to use some elements knowing…
-
2
votes2
answers24
viewsPlace first result with greater margin than the others
Hi, my question is kind of strange, I always put in css two ids for when I put a margin, the first with margin 20px and the second with margin 10px, I wanted to know if there is any way to do this…
-
2
votes1
answer236
viewsJsfiddle {"error": "Please use POST request"}
I am testing this code in Jsfiddle and have as answer: {"error": "Please use POST request"} Here is this code DEMO I followed down the code: Html <!DOCTYPE html> <html lang="en">…
-
2
votes4
answers193
viewsHow to space the "fixed title" of a page and the posts?
During the creation of the page, I decided to put a "title" which will have the name of the site and some tabs for the user to be forwarded; however, it always overwrites the first post: Each post…
-
2
votes4
answers2527
viewsHow to take the edge of a primefaces datagrid?
How do I take the edge of a primefaces datagrid??? follows the part of the code I use the datagrid: <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista"…
-
2
votes1
answer85
viewsHow to put an overflow on a scripted div to leave fixed lists in the header?
Hello, I’m trying to add a overflow:scroll in my project, but this invalidates the script that leaves the div marker fixed at the top until you reach the next div. http://jsfiddle.net/5cC83/5/ If…
-
2
votes1
answer448
viewsProblem with CSS button placement
Good morning! I am facing problems with the placement of a CSS button. When the form has not yet applied any validation, it remains in the correct position, but when validations are applied (the…
-
2
votes3
answers247
viewsBackground Reponsivo
I’m having doubts about how it makes the background responsive. This is the Background. This is how it’s getting at 1024px Wide. I am putting in the Background-Size 100% Width, I wish that when the…
-
2
votes1
answer48
viewsinput search on iphone
I have the following appointment: <form class="area-search" action=""> <input name="search" type="search" placeholder="O QUE ESTA PROCURANDO?"> <button>Buscar</button>…
-
2
votes1
answer180
viewsAlign table with header
How do I center the product table? A table has no Id or Class. I wanted to take the table through javascript and modify its width to align with the header. But it has id or class. I can only modify…
-
2
votes1
answer9311
viewsHow to change the color of a link when passing the mouse (mouse)?
I have a horizontal menu with the links (example): Home; About; Contacts; The idea is that the home always has the green padding background and the rest of the links with white background. When you…
-
2
votes1
answer855
viewsHow to achieve a slideToggle effect with jQuery?
In this link, i have red stripes in the specialty. I would like to ask what effect I will use for that one div replace the contents of individual stripes with a type effect slideToggle from left to…