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
-
1
votes1
answer1880
viewsHow to apply formatting to the parent element through the child element class with CSS or SASS?
I have the following structure just for example: <div> <div class="filho">teste</div> </div> I have the class .filho with a position: absolute; I wonder if through class…
-
1
votes1
answer309
viewsLinear-gradient and browser compatibility
I’m using the following background css in a menu: background: -webkit-linear-gradient(left, #0260a9, #444); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(left, #0260a9, #444); /* For…
-
1
votes2
answers186
viewsError when implementing sharing for facebook
Follow the code I have: <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js =…
-
1
votes1
answer1370
viewsLimit the number of characters in a select HTML/CSS/JS field
I know through the attribute maxlengthit is possible to limit the number of characters of a input. The doubt: This property applies to select, if not what its equivalent would be, or how to achieve…
-
1
votes2
answers281
viewsEvent . on('click', does not work on input containing data-Md-icheck
Hello, in my role has the event .onClick that should activate when marking the checkbox, but when I use the data-md-icheck it is ignored by the function. <input type="checkbox" data-md-icheck…
-
1
votes2
answers75
viewsHow to fix these styles to circumvent reported error?
I am modifying inputs checkbox hiding them and calling labels to receive the function of checked. As you can see in FIDDLE and also in the codes shown below, when clicking in ascending order, the…
-
1
votes1
answer589
viewsRight column of fixed site
I have a layout with 2 columns. Left Column: Contents Right Column: Various Information when the user is browsing the site, scrolling down the right content ends up being visible only the left How…
-
1
votes1
answer36
viewsUse of CSS Display
I noticed I’ve been using quite a lot of display:none to remove code blocks from a page. I do this by instructions from superiors, but I have always believed that it is a practice that can affect…
cssasked 8 years, 3 months ago Asura Khan 2,474 -
1
votes3
answers355
viewsAdjustable div with css
How can I make the div to adjust and align the top div automatically ? Because this div is inserted dynamically. I’d like to do that. Thank you…
-
1
votes3
answers3722
viewsHow to extend a DIV to the end of the screen?
Well I created a main div to hold all the elements of the page. Inside it I have 3 others divs: 1 menu bar, 1 sidebar, 1 content area. HTML: <div class="principal"> <div…
-
1
votes1
answer11340
viewsFloating Div in Bootstrap 3 accompanying Scroll
Good morning! I have the following code: <div class="container"> <div class="row"> <div class="col-md-5"> <?php $hostdb = "**********"; $userdb = "**********"; $passdb =…
-
1
votes2
answers145
viewsQuantity of items aligned vertically according to height of div
Good evening guys, I’m trying to make a basic layout similar to Windows 8/10 home screen, and in a container I would like to align vertical 80x80 items, and if according to the Height by chance some…
-
1
votes3
answers1026
viewsHow to make an element with position Fixed stop "cutting" its contents when resizing?
Does anyone know how I can make an element with position: fixed; be responsive. That is, the contents on the left remain on the left and the contents on the right, when resized, remain on the right…
-
1
votes1
answer178
viewsCentralize ul within the responsive div
I have a screen that will be a Dashboard and in it I have several panels that are read with float:left so that when the screen is resized go passing the panels down getting so responsive. My problem…
-
1
votes1
answer539
viewsAutomatic textarea
Speak, folks. I would like to know how to allow automatic scrolling of the textarea, for example, so that the user will type something inside the textarea, the same changes height, according to what…
-
1
votes2
answers5893
viewsImage Transition with css3 - Keyframes
I’m trying to make an animation with automatic image exchange using the @keyframes of css3. I am copying and pasting the sample code, but without success. The transition between the images is taking…
-
1
votes1
answer214
viewsDevelop layout with 3 columns
Suppose I have one layout containing 3 divs side by side. The first of these divs has a fixed size of 100px, the third div cannot have a fixed size as it will depend on the text inserted in it,…
-
1
votes0
answers92
viewsGet pixel values of a certain point on the screen
Hello, I’m new here so if there is any formatting error, I’m sorry! I am developing a WEB solution and I need to load an image in the browser and select 4 points within that image and get its values…
-
1
votes1
answer1108
viewsCSS selector to modify TAG before or after inside the div
I’m in doubt when applying some styles to css. I wish to modify a tag using a div within it: header { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;…
-
1
votes1
answer422
viewsPick CSS class from other sites using PHP HTML DOM Parser
I’m trying to get a class from a news site, but I’m not getting it. $titulo = $html->find('feed-post-body-title gui-color-primary gui-color-hover', 0) ->innertext; echo $titulo; You’re making…
-
1
votes2
answers42
viewsHow to do with objects on a page at a certain width to group vertically?
Guys, I’m lined up a few div as columns inside another that serves as container. What I wanted to know is how do I make it in certain width of itself div or from the page they group together on top…
-
1
votes1
answer585
viewsMy video does not run in background css on tablets or ipads. Only on PC
Hello guys I have a video that runs normally in background css on PC. But when accessing the site by tablets or ipads it does not run. See the code: <video autoplay loop poster="torre.jpg"…
-
1
votes1
answer1241
viewsHow to create a transparent or colorless css background?
What is the code in css to make the background transparent, or colorless? I’m creating a Native ad on Admob and I need the background to be transparent.
-
1
votes0
answers21
viewsPrinting with content always on a page?
A customer has requested that whenever a price list is printed, it is always printed on only one page, there is a way to do this? Thanks for your help..
-
1
votes1
answer1372
viewsScroll bar does not descend until the end
I have a side menu that has position fixed, if I decrease the screen resolution the scroll bar does not descend until the end, that way: Currently I do this bar using the property overflow of css:…
-
1
votes0
answers463
viewsUse two CSS classes in C# Razor MVC
I want to use two CSS classes in Razor. Is it possible to do this? Because I’m not getting it. Here’s what I’m doing: <div class="form-group"> @Html.LabelFor(model => model.ativo,…
-
1
votes0
answers488
viewsPlace next and Prev buttons in the Cycle plugin
Guys, I’m trying to put two img, one next and the other Prev on the slide image of the plugin Cycle, but even with position: absloute; both the image of next as that of Prev do not overlap the rest…
-
1
votes2
answers668
viewsIcon libraries
I would like to know from you, which are the libraries of icons that you use, preferably free, I for example, I started using Font-Awesome, but it did not meet some of my needs.
-
1
votes1
answer122
viewsHow to do this? Transition Page within Modal?
Friends, I’m wanting to do something similar to what you did in this gif below but I don’t know how I can do.. The idea is that by clicking a button inside a modal, it directs to a ''page'' with…
-
1
votes1
answer3664
viewschange classes with Angularjs
I need to change the style of an element when clicked and if you click again it goes back to the color it was (as if it were an "advanced search"). I have the following code: <a href=""…
-
1
votes1
answer150
viewsanimate progress bar
I have this progress bar and need to send via javascript : document.querySelector('#progress').style.width = 10%; the value for the css animate : @-moz-keyframes progress { from { } to { width: 80%…
-
1
votes2
answers1141
viewsWhat code to search for available domains?
I have searched the network but found nothing that would help to have a PHP script that would check the searched domain. Look what I got: <? function whois ($domain, $tipo) { $server[0] =…
-
1
votes1
answer167
viewsChange transition and location of an action in jQuery
I recently found a code that has what I need. I’m developing a page with 3 buttons, each of them shows a content (a div) when clicked. When I click the first button, as the div is displayed right…
-
1
votes1
answer68
viewsWhy do Divs move after inserting content?
If I take the tags it is aligned right, however when I insert the image or, for example, H1 it already goes down again, if insert in all it goes back to normal, but because this occurs? body {…
-
1
votes1
answer1008
viewsHow to solve dropdown menu problem that does not work on android?
I’m learning to program, I’ve done the whole site, and it’s pretty much the way I wanted it, at first I had problems with IE the menu didn’t work at all, I reworked the menu, I used examples I…
-
1
votes3
answers914
viewsChange property of a CSS element on certain pages
For my example I will use a CSS class called . item .item{ width:100%; } So, how to change this property of this element on some specific pages? for example, in the index page qro width 100%, in the…
cssasked 8 years, 1 month ago Renan Duarte 37 -
1
votes2
answers1143
views -
1
votes2
answers1021
views -
1
votes1
answer10202
viewsHow to put a link in a background-image?
I have a div that has these characteristics: div#circulo{ height:200px width:200px background-image: url(minhaimagem.png); background-size:200px; } The image that this is is a centralized circle,…
-
1
votes1
answer226
viewsMake Vertical slide with scroll and fade and Parallax
I wanted to make a slide like this site: http://www.midtownatlinnovates.com/why-midtown/ , where the information is divided vertically and scrolling down changes the image and info. Someone can shed…
-
1
votes1
answer482
viewsoverflow overflow padding
Well I have a div where I use padding and overflow but when the overflow is activated and the scroll bar appears the text goes over the area of the padding, there is a way to make the overflow start…
-
1
votes1
answer1071
viewsHow to use different CSS files for each view
I wonder if it is possible to be using CSS files "helpers". For example, in my ASP.NET project MVC 5, as everyone knows, and default the use of BootStrap, but it would have to create a separate .…
-
1
votes0
answers139
viewsPage break in print
I’m making some wallets and I need to break the page when I give 8 card on the sheet I made a code that only skips the front page. css @page { /*margin top,direita,rodape,esquerda*/ margin-left:…
-
1
votes2
answers677
viewsCenter vertically DIV without fixed height in CSS
There are several ways to center the content of a <div> vertically. However, when dealing with a height other than pixels, people begin to wonder if there is an efficient method for this. I…
-
1
votes1
answer172
viewsProblems with HTML and CSS structure
I’m with a case where I can’t solve, I’m developing a layout in HTML and CSS where I use flexbox centering content, well, on large screens everything works ok, but on small screen to div burst and…
-
1
votes1
answer196
viewsHow to make a structure with Divs of the same id
Well, lately I’ve seen in a lot of templates, that a div with the same id, takes places in different space. I as I have little knowledge of CSS, intended to do something that resembles this: That…
-
1
votes1
answer1058
viewsHow to create a color palette and color a div depending on the chosen color
Where I find content to create a website with a color palette to customize a product? For example: You click on a color and this color applies to the product, I click on another color and change the…
-
1
votes3
answers222
viewsHow to prevent the edge from affecting child elements
how do I add edge to a img correctly because I am adding the edge to the img and it seems to get bigger than the others. I am adding by click using jquery when I click on img mark her with a 2px…
cssasked 8 years, 9 months ago Leonardo Costa 1,043 -
1
votes2
answers2354
viewsBrowser Identifier - Internet Explorer
I need to know when the user accesses the website through Internet Explorer, run a CSS. So far so good, follow the code I used to apply CSS: <!--[if IE]> <link rel="stylesheet"…
-
1
votes2
answers3847
viewsVertical line between Ivs
Is it possible to make a Vertical line between Divs? wanted to create a tab for the data. Below is an example of the code I am using: <div style="float:left; max-width:200px;max-height:200px;"…