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
-
6
votes2
answers2295
viewsHow to find CSS images and styles that are not used on a website?
When developing large-scale websites or resuming other people’s projects where there are hundreds or thousands of lines of CSS styles, it can become complicated to review and clear code to remove…
-
6
votes0
answers112
viewsBootstrap v2.3.2 grid does not work in IE9
I have a grid in Bootstrap v2.3.2, which I’m trying to fix to run on IE9. On the official page the grids show correctly in IE9, so I expected the same result. I saw some answers with Respond.js and…
-
6
votes1
answer1874
viewsCatch the parent element in Hover
Good Morning! Is it possible to change the parent element by giving Hover to the child? For example, I have the following: nav {border:2px solid red} nav ul li {color:#fff} nav ul li a:hover…
-
6
votes1
answer2922
viewsHow to make a page load time progress bar?
How to make a progress bar that loads as the page loads? Like on this site here: http://sinalverdecaxias.com/ I saw an example in codepen.io, is kind of like this, I don’t know what this progress…
-
6
votes3
answers954
viewsVertical slider navigation including highlight thumbnails
There is a slider here on this website that has a vertical navigation that is located on the right side, which includes the thumbnails of the previous slides and also of the following slides. I’d…
-
6
votes2
answers1911
viewsHexagon with css - blurred image
After many attempts I was able to turn an image into a CSS-only hexagon, I had many problems with SVG, js, etc. However, the image is perfect in IE (incredible as it sounds) and Chrome it distorts a…
-
6
votes5
answers19009
viewsHow to keep the footer always down there
I wanted to know how to keep the footer of the site always at the bottom of the site, even if the content of the site is little, as the example below. If I put a margin top, it doesn’t stay down…
-
6
votes1
answer1395
viewsHow to make a layout template with Angularjs?
need a standard template for all screens of my front-end application how do I do this with angular-js? have as?
-
6
votes3
answers1165
viewsProblem leaving automatic field width in responsive layout
I have the following situation. I’m working on a responsive layout that features three columns, left sidebar, center and right... It turns out that inside the right sidebar there is a text field and…
-
6
votes2
answers571
viewsHow to change the url of the "background" property?
I have this function that changes the src of an img: window.document.images['img'].src = n_src; <img src="" name="img"/> But I wanted to change the background url of the style: <div…
-
6
votes2
answers453
viewsProblems with table configuration in Primefaces
Greetings to you all, I’m new as a Java programmer, and I’m having difficulty setting some things in the table for lack of experience, note the image; As you can see the field Manufacturing year is…
-
6
votes1
answer344
viewsWhy is @import not working properly?
I’m trying to import one CSS into another but it’s not working, the directory structure is like this: css style. css/agoravou.css But the command is not working @import url('css/agoravou.css')…
-
6
votes1
answer133
viewsDropdown with SVG
I have an art and now it’s in an SVG file. The problem is that the client wants that when passing the mouse (or if clicking) on a block, he should open a menu. I don’t know if you have the ability…
-
6
votes2
answers853
viewsMake shapes with CSS
I need to make this shape with CSS. But it can’t be with border. Follows the form: It cannot be with edge for the reason that forms using border do not allow me to position texts within them.…
-
6
votes1
answer52
viewsWhy isn’t Stylus identifying classes?
I’m having a problem with Stylus. Compiling my code by Node sometimes it gives a bug, it seems that it does not identify the classes because of the . generating the following error: expected…
-
6
votes3
answers789
viewsI can’t align a label inside a <td>
In a calendar, I need to put a label next to it. It turns out that the label is getting underneath it. If I open another one the label is on the far right, and I need it right next to it. Here the…
-
6
votes2
answers1091
viewsPut spacing effect at paragraph start
Setting: I have a page of Terms of Service and responsibilities. Because it is very verbose, there are about 15 paragraphs. To generate the initial spacing of each paragraph I am using a conjunct…
-
6
votes1
answer177
viewsWhat is the "behavior" attribute in CSS for?
I’ve seen in some CSS codes made to work on most esteemed navigator Internet Explorer the following attribute: img { behavior: url(ie_png.htc); } What is the purpose of this behavior? Only works for…
-
6
votes4
answers696
viewsHow to create hexadecimal colors randomly?
How can I create color code in hexadecimal randomly with PHP? For example, from #000000 at the #FFFFFF, to generate something like this: <div style="color: <?= rand_color()?>"> Estou…
-
6
votes1
answer78
viewsIs there any way to add css rules by javascript?
If I have the following tag style: <style> body{ color:red; } </style> It would be possible to add another new css rule like inside this style through the Javascript? For example, I want…
-
6
votes3
answers284
viewsDiv with fixed position on the screen within the boundaries of another div
I need a div to be fixed on the screen, IE, descend as I visualize the rest of the page, but the problem with the position:fixed is that it takes the element of page flow. I want this div to be…
-
6
votes1
answer129
viewsDoubt about page width, None display and size (MB)
There is a width ideal for a web page? When we put an image with display: none, the image is loaded along with the page load or when we click on it? What size (MB) is considered "lightweight" for a…
-
6
votes0
answers107
viewsGroup code in a row
Well, I would like to change my CSS code by joining the parameters that are "joinable" For example this code: { margin-top: -2px; -> juntável com MARGIN margin-right: 40px; -> juntável com…
-
6
votes2
answers263
viewsEclipse is not recognizing project CSS with Javafx
My project with Javafx simply stopped recognizing my . css and the following error appears: An error has occurred. See error log for more details. java.lang.NullPointerException In error log appears…
-
6
votes1
answer640
viewsWhat is the role and responsibility of HTML, CSS and Javascript technologies in creating the front end?
With these three technologies HTML, CSS and Javascript can be developed all front-end or client-side of a particular website. Therefore, I would like to know what is the role and responsibility that…
-
6
votes2
answers4267
viewsAssign a value to my td inside a table with jQuery
I cannot assign a value to my td within a table, it contains id dynamic as in the example below: <table class="table table-condensed table-hover" id="tabelaDependentes"> <caption>Lista…
-
6
votes1
answer69
viewsDifferent color layout in Textbox (Safari and Chrome)
Safari is fading colors inside that are not @Html.Comboboxfor, as I do not fade into the textbox? I’m using CSS and Jquery, Follow the photo Select does not fade in Safari: @Html.DropDownListFor(m…
-
6
votes1
answer1350
viewsHow to show message in contact post return
I have a contact form where I send the information entered to my BD, I would like to leave a message to the user after submitting the form and I am not succeeding, what I did was this: I have a div…
-
6
votes2
answers248
viewsHow can I make the Blur effect on IE?
I’m using this css code to do the effect blur in a div: .blur { -webkit-filter: blur(25px); -moz-filter: blur(25px); -o-filter: blur(25px); -ms-filter: blur(25px); filter: blur(25px); } <div…
-
6
votes2
answers7016
viewsremove element css
I wanted to know how I can via jquery remove all css styles from a certain html element. Example: html <h1 class="titulo">Título</h1> css .titulo{ padding: 5px; color: #424255;…
-
6
votes0
answers92
viewsIs there anything that gives you the path to CSS?
I need something to make me reference the path of CSS faster, like a feature in Google Inspect, because it’s hard to keep finding the sequences of hundreds of divs inside divs. Like something that…
-
6
votes1
answer569
viewsHow to reformulate radio and checkbox UI?
I’m using custom radio and checkbox bootstrap, I realized that some customers had difficulties in assimilating who were checkbox or radios and who should perform the action of selected. Example:…
-
6
votes1
answer392
viewsAlign text horizontally to image
I’m trying to align the text of some products in relation to image, but I’m not succeeding in what I’m doing, what I have is this: <div class="col-md-3 portfolio-item"> <a…
-
6
votes2
answers45970
viewsLimit text display by number of CSS characters
Friends, usually the overflow: hidden; has a text limit by the size of the DIV from it, say 105 pixels... example: <div style="overflow: hidden; width:105px; border:1px; white-space:nowrap;">…
-
6
votes2
answers760
viewsHow to hide half a piece of content
How do I do what is illustrated in the picture? Knowing that the content is not just text but buttons and other things from a website homepage!…
-
6
votes1
answer329
viewsHow to summarize a text within the <span>?
Well I have the following code: <span>TÍTULO CONTAINER TEXO TEXTO TEXO TEXTO</span> I need this span has been width: 100% and that has no line break, if the text is too large it has to…
cssasked 7 years, 11 months ago Hugo Borges 5,294 -
6
votes2
answers536
viewsMake an HTML checklist
Hello, I wonder if it is possible to make a checklist, as the image below, only with css (please disregard blue lines): i found the Nth-Child css function, but I was only able to do this:…
-
6
votes1
answer1377
viewsSelect multiple CSS classes with wildcard
I want to color all the classes in a grid I downloaded, the Flexbox. It has 12 columns, I want to do something like col-md-* and select everyone who uses this class to color.…
-
6
votes1
answer297
viewsHow to prevent the contents of an element from being copied after Ctrl+A and Ctrl+C?
I have a page and want to allow the copy normally, but I wish specific elements were not copied after using Ctrl+To and Ctrl+C, for example forms, navigation menus and advertising banners. This is…
-
6
votes7
answers19300
viewsIncreasing modal size using bootstrap and html
I have a certain modal responsible for displaying some content of the site, however the content can not be adjusted to the modal screen, it always gets the same width regardless of the content ...…
-
6
votes2
answers10158
viewsHow can I center my form within my div?
I’m trying to centralize my research form in the center of my div but I’m not getting any property in css that does this without needing ganbiarra? here is the development page index.html…
-
6
votes2
answers12979
viewsHow to apply scrollbar only to the tbody element in an HTML table?
How to apply the scrollbar (scrollbar) only in the element tbody, thus leaving the element caption and thead fixed on the table, without moving when the scrollbar moves. Below follows the HTML and…
-
6
votes1
answer2355
viewsChange the height of the div according to the screen size and adapt when adjust
Hello, I’m trying to adjust the height of my Ivs as the div that has the most text, when the page loads, works normal, but when I change the screen dimensions, it doesn’t work. HTML <div…
-
6
votes1
answer963
viewsRotate objects around the specific CSS axis
I would like to know how to rotate an object (div) around the axis of another object (another div). My problem is the following: I have a larger circle and 5 smaller circles located at the bottom of…
-
6
votes1
answer609
viewsCSS animation does not work on Mozilla
Guys, I’m having a little problem with a CSS animation. I made it work normally in Chrome and even in IE, but in Firefox it gives a bug. I tried to put the prefix -moz- in some properties, but…
-
6
votes2
answers16970
viewsHow to print A4 pages using CSS?
I currently use the mpdf library for reporting. However, in some reports I need to send more than 400 pdf pages and this ends up taking a long time and consuming many server resources. I even…
-
6
votes2
answers1008
viewsHow to scroll in Javascript?
I am at the beginning of the studies on JS, however, I am with a project, and I had the idea to make a bar Progress, however, this effect of the bar Progress will only happen, when the scroll…
-
6
votes2
answers421
viewsGroup css selectors to reuse code
Given my and html and css respectively: <!DOCTYPE html> <html> <meta charset="UTF-8"> <head> <link rel="stylesheet" type="text/css" href="css/estilos.css">…
-
6
votes3
answers833
viewsBalloons with tips for using the system (Tour)
What I want is to know what name is given to those tips that appear to assist in the use of a system when we first enter it. For example, I log in to the system and a little balloon appears as if it…
-
6
votes1
answer180
viewsDIV TEXT Fixed only in DIV PAI space
Hello, I’d like to do the following. <div class="pai"> <div class="form"></div> <div class="text"></div> </div> I have a div FATHER And inside of it are two divs…