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
answer174
viewsToggle text color according to background color
How can I change the color of a text according to the background color in which it is inserted? I’ve seen this a few times. It works like this: if the background is clear, the text turns black, and…
-
0
votes2
answers451
viewsHover one element and capture another tag
I need to do an Hover in a paragraph and change the color of the link tag, how can I do this? p:hover a { color:red; } <a href="#">Título</a> <p>Passar o mouse troca a cor do link…
cssasked 7 years, 8 months ago Samuel Souza 468 -
0
votes1
answer37
viewsHow do I display a DIV when passing the Mousa over another DIV while holding the same opening position?
I will explain based on the image below I did to make it easier to understand. In the image below I have a banner (gray color) and other larger in red color. The operation would be as follows: When…
cssasked 8 years, 6 months ago Gladison Neuza Perosini 861 -
0
votes1
answer433
viewsAdjust Background as per resolution
I have a background image, and I would like it to fill in the div and adjust to the resolution of the monitor. The div is already responsive because I use Foundation Zurb. I did that, but the image…
cssasked 7 years, 8 months ago Eduardo Santos 754 -
0
votes2
answers59
viewsError in function for load bar using a while(){}
I’m trying to set up a charging bar that starts after 2 seconds of loading the document, Her every 100 thousandths of a second win 1% of width. However, when the page loads, console.log() shows that…
-
0
votes0
answers41
viewsLoss of pixels in input from one form and another not
I got the following input <label class="labelPequeno">Endereço</label> <input type="text" class="typeTextGrande" required maxlength="400" id="endereco" name="endereco" /> With…
-
0
votes2
answers385
viewsMy DIV is not pasted to the top bar of the browser
My DIV does not get glued to the top bar of the browser. I realize that there is a space of about 10px. I’ve used the following CSS, but it’s no use: body{ margin: 0; padding: 0; } Follow more…
cssasked 8 years, 6 months ago Gladison Neuza Perosini 861 -
0
votes1
answer79
viewsHow to add a Transition (fade-in) in this example?
I have a website that when you hover over the item there is a photo exchange. however this exchange is immediate. would like to add a Transition effect, like a Hover Transition 1s. is it possible?…
-
0
votes0
answers408
viewsHow do I make anchor appear under the menu?
I’d like to know how I get the anchor under the menu when it’s clicked. My menu is fixed with jquery when it drops some pixels. For example look at this image, when I click on the anchor the menu is…
-
0
votes1
answer487
viewsImage breaking (HTML, CSS, responsiveness)
Good morning, My problem is this: I’m using the Prestashop. I need those images of the print to be underneath each other, when it decreases the resolution or when it is accessed from a mobile…
-
0
votes1
answer1094
viewsFull screen video as background for any resolution
I need to put a full screen video as the background of a web page, someone knows how I can do this? Thank you.
-
0
votes1
answer267
viewsAndroid Apps / Ios HTML
I need to develop a mobile application, I would like to do in the style of the globe app, which is a responsive site that is displayed, which program should I use to develop in html and be compiled…
-
0
votes1
answer249
viewshow to leave the div fixed in a location
I wanted to know how to make the div not break the layout I have the following problem when I open an answer to a comment it opens below this comment, but it was to stay on the side or something…
-
0
votes2
answers107
viewsdiv based on radius - border-Radius or other method?
I need to create a div with the base in equal radius of the attached image. However I am not able to find the exact value in the border-Radius to equal the image, is there any other way to do this?…
-
0
votes1
answer78
viewsModal display when submitting form. No loading page
I have the code below. I would like to display a modal once I submit the form and if all fields are filled in. If any field has not been filled in it is already showing a Popover in the field…
-
0
votes2
answers70
viewsShow DIVS from selected category only
Hello, I’m having a problem and I can’t find the solution, because it’s something common on the internet, I believe you’re not looking for the right way. I’d like to select the records that will be…
-
0
votes1
answer547
viewsCreate a div that contains other online Ivs
I need help creating a div that can include other horizontal line Ivs. The goal is to create a space at the top of the site header. Can someone help me? <div id="header"> <div…
-
0
votes1
answer120
viewsHighcharts Xaxis label on top of tooltip
I’m having a problem, where the chart tooltip is always getting below the Xaxis label. I would like the tooltip to be above the label. http://jsfiddle.net/toninho09/83gkze29/1/…
-
0
votes1
answer64
viewsJavascript menu level 2/4 with error
How do I define the same code, with different variables, but to perform the same action. I tried to rewrite it and still, the Javascript is in error, in case it would be a dropdown menu, with up to…
-
0
votes1
answer204
viewsMaterial Design Layout Adjustment
I can’t get Slide to take the entire home screen area, note that half of the Section "structure" is seen on the website home, I’ve tried everything, but I’m not good with CSS, unfortunately. <div…
-
0
votes1
answer232
viewsBootstrap + sortable with Jquery, helper problem
I’m using a bootstrap template to do a small supervisory. In it, I added two areas of sortable Connected lists, available in Jquery. The ul's list elements are assigned overflow-y: scroll, for when…
-
0
votes1
answer189
viewsHow can I margin-top a div?
Well, the thing is, I have several Ivs, which are contained in a div of id="container". Some, I want them to be higher up than others, but I wanted to make margin-top, of all of them for one point,…
-
0
votes1
answer75
viewsDropdown in purecss does not work in menu
I was creating an example menu dropdown with purecss, at first it worked, the submenus appeared all right, when I went to make the same example only in the responsive format (where I used this…
-
0
votes2
answers72
viewsHow do I center the content of an element vertically?
Well, I intend to centralize the contents of a div, at a vertical level. My div, she’s inside another div that’s the container: DIV Container: container{ margin-left:10%; margin-right:10%;…
-
0
votes2
answers672
views -
0
votes1
answer62
viewsModify css/js links with Grunt after concatenating and minifying
I’m using Grunt in my project, I can concatenate them and minify them as desired. But I need to change the links from my page to the minified files. For example: Of: <head> <script…
-
0
votes1
answer2492
viewshide/show div
I am creating a website of a travel agency, and at the beginning of the site I created 3 prominent places. When the user passes the mouse by the images, the image should darken and appear "more…
-
0
votes2
answers3029
viewsDiv overlap the other
Colleagues. I want to put a text on a div, but as I change the size of the div, the text decreases and ends up breaking. See the image: The code I’m using is this: <div style=\"width: 300px;…
cssasked 7 years, 8 months ago user24136 -
0
votes1
answer127
viewsDropdown menu in CSS
Good afternoon Galera, How do I make the dropdown work in the menu I created? Hiding the dropdown from what we did was easy, but how do I make it appear with the mouse over the "what do we do"…
-
0
votes1
answer104
viewsHow to disappear with the Parallax effect with angular?
How can I disappear with the action of Parallax when it is with an attribute? this is the tag that has the attribute: <parallax-image ng-class="{{fixo}}"…
-
0
votes1
answer1193
viewsHow to change the website’s background image dynamically?
So I wanted to make a bg-image if it changes dynamically the same in this example: http://www.goesenlinea.com/agus/ Background changes every 5 seconds. Does anyone know how ?…
-
0
votes1
answer48
viewsWhy doesn’t the button line up on the iPad?
The responsive site is lining up on the other devices quietly but on the iPad it leaves the place... does anyone know a way to put it in the center without losing the center position for mobile…
-
0
votes1
answer37
viewsRemove image fade
I have a website in my hand and I need to fade the photos because the customer does not want it to be dark when he hovers his mouse over it. As I am new in the area I would like to know what this…
-
0
votes1
answer66
viewsLimit text to the first paragraph in Angularjs
I have an application that receives a giant text from the database. I want to display only the first paragraph and put a text saying "SEE FULL DESCRIPTION" right below and when you click open a…
-
0
votes1
answer28
viewsSelecting disabled elements
I need to differentiate the view from a select box where there is an element selected by default, but it cannot be selected by the user (as if it were a placeholder of a normal input), but I want to…
-
0
votes1
answer102
viewsConfusing code - what does it mean?
When I have this code: {{ 'js/gourmet.js' | static_url | script_tag }} What does it mean? Where do I find this static_url ou o script_tag ? This is jQuery?…
-
0
votes3
answers234
viewsShould I set the background on TD or TR?
I have this question ever since. I wanted to know what is the most recommended way, if is to define the background in tr or in the td. Example 1 .table > thead > tr { background: red; }…
-
0
votes1
answer66
viewsSet CSS button width to 100% when mobile
Hello, I would like help with a small problem, although it seems simple, I do not move much with CSS so I ask for help.I would like to set the width of my button when the site is accessed to 100% so…
-
0
votes2
answers579
viewsremoving li using jquery
Hi I’m making a responsive site and I came across a problem, the desktop layout between the menus has the logo, but for mobile does not have the logo. As the menus are in a li, I wanted to remove…
-
0
votes1
answer53
viewsAdjust CSS on browser-independent page
I have a function on one page (Asp.net) that calls another as a popup: Btnfinalizar.Onclientclick = "javascript:Exibirpopupmobile('/Shoppingcart/Formulario.aspx', 900,580); Return false;"; Using…
-
0
votes1
answer35
viewsPseudo selectors css
I need to use two pseudo selectors in the same css type ul li:Nth-Child(4), but I have a submenu with another ul and end up focusing on the two ul, I need you to change only the first ul, I’ve tried…
-
0
votes3
answers841
viewsIs there a javascript function that marks a selected random text with the mouse?
Hello, do you know if it is possible to create a text marker, similar to those used in pdf, but in an html? Not necessarily would he need to save the markings, but saving would be better. Thanks!…
-
0
votes1
answer1481
viewsAlignment of tables side by side
I have these four tables, but I have a big problem that I can not solve. The fourth table is below the others and not next .price-page { background: none; margin-bottom: 130px; } .container { width:…
-
0
votes1
answer1601
viewsCSS and JS are not being applied to the project in Spring MVC (config via java)
I’m a beginner with Springmvc and I’m learning through the book Spring MVC (Master the main java web framework, by Alberto Souza, code house). Before starting with Spring, I created a Maven project…
-
0
votes0
answers212
viewsSlider Loading Problems - Height
I’m using a plugin to make a slider, called Slick. http://kenwheeler.github.io/slick/ I’m leaving the image of the slider with width: 100% so that the image is good from the resolution 1280px. But…
-
0
votes1
answer57
viewsBootstrap style datetime does not work properly
Good morning, first I’ve seen researched several possible solutions to this problem here on the site, but the error it is giving me is different from the ones I found here, the file is pulling a…
-
0
votes2
answers24725
viewsHow to make a div occupy the whole page?
I want to create a side menu and its format will be widht: 250px and height: 100% leaning on the left corner of the browser, but when you put these qualities in css, the div doesn’t get 100%, it’s…
-
0
votes1
answer929
viewsUse external css file in JSF
given my template page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"…
-
0
votes2
answers48
viewsSelector does not take another selector
I have a transitional effect on a div that should be applied when I do Hover in another div. I tried to use some selectors ( +, >) I couldn’t believe it’s the way I’m using them .box-toogle {…
-
0
votes1
answer19
viewsMake it create scrollbar when two components collide
For example, I have two Ivs on the page, and they are set to width and height, but when they crash I would like me to instead of either go down or go up, just appear a scroll bar.
cssasked 7 years, 7 months ago Lucas Caresia 2,663