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
answer178
viewsHow to enable the right-click (with the new tab option) on an input or button
I have a input I would like the option to appear when right-clicking abrir link em uma nova guia. How can I do it, is possible only with css and html, taking into consideration that this same button…
-
1
votes1
answer174
viewsAnimation with CSS and jQuery
Well I am mounting an Alert system with jquery and css. Everything is working. However I noticed that in some browsers it is getting a little slow. The problem is because the div of Alert moves…
-
1
votes1
answer524
viewsCalculate pixels for columns in css
Good guys I have 3 columns in a space of 950px; I did the calculations here on the calculator 950/3 = 316,666666666666667 Only when I convert it to css: width: 316.6666666666667px; nothing changes,…
-
1
votes1
answer327
viewsShould an image be resized in the browser?
I have read in some places that we should not resize the images we request from the server in the browser. But I saw recently that it is good to have a large image with a low quality so that when…
-
1
votes2
answers2534
viewsAlign Framework Cards Materialize
Just now I decided to take a look at Materialize and tried to use the card element. I just can’t understand why they’re not organized horizontally! <div class="container"> <div…
-
1
votes2
answers765
viewsHiding entire column with CSS at a specific resolution
I have a table and I need to hide an entire column when it opens in a specific resolution. I tried to use the display: none but the borders of the table appear at the end of the line, even if every…
cssasked 7 years, 10 months ago Marcos Henzel 797 -
1
votes1
answer39
viewsHelp with misaligned flexbox footer
I’d like some help with mine footer , that is getting totally misaligned, I have tried a clear: both , but without success, I would like a help to correct this error. the original footer code is…
-
1
votes1
answer1188
viewsRemove background color from autocomplete input
Something that makes me very uncomfortable is when the google browser autocompletes something and leaves the input with yellow background, how can I remove it?…
-
1
votes1
answer186
viewsProblem styling a placeholder based on a CSS class
I’m trying to make sure I can have several types of placeholder based on a class defined like this: .red, .red::-webkit-input-placeholder, .red:-moz-placeholder, .red::-moz-placeholder,…
-
1
votes2
answers1320
viewsHow to eliminate white space between columns?
I have the following table: <table> <tr> <td style="border-top:1pt solid black">A</td> <td style="border-top:1pt solid black">B</td> </tr> </table>…
-
1
votes1
answer725
viewsBorder Radius in table with border Collapse
I have the following code: table { border-collapse: collapse; } .item1, .item2, .item3 { border-top:1pt solid black; border-bottom:1pt solid black; } .item1 { border-left:1pt solid black;…
-
1
votes2
answers6376
viewsCenter a div with text and position Absolute in the center of div pai
People is the following I have a father div and another div with a text in position Absolute... this text is aligned to the top and left of the father div and I need to align to the center... things…
-
1
votes1
answer93
viewsBackground-size (Mozilla Firefox)
I have the following code background-image: url(#minha0imagem#); background-size: contain; background-repeat: no-repeat; Chrome is the way I want it, in the center and full screen. Firefox is not.…
-
1
votes3
answers15260
viewsHow to insert an image in my html doc to serve as background image(background)
Greetings. I would like to know how to insert an image in my html document so that it serves as background on my site. The image is on the desktop of my PC with the name "backg.jpg". Thank you.…
-
1
votes0
answers39
viewsDifference between id and class in HTML5
When I have to use "id" and when I have to use "class" in HTML5?
-
1
votes1
answer108
views -
1
votes1
answer57
viewsproblem with firefox menu
Galera set up a table where I right click on it and open a menu. The problem is that in firefox I have to give 2 clicks. And it keeps closing when I move the mouse. I have tested on all browsers and…
-
1
votes3
answers48
viewsDoubt regarding CSS selectors
I started studying CSS a short time ago, and when analyzing the CSS of a page I came across the following excerpt: @media (min-width:10px){ body{max-width:none} } I wonder what kind of selector is…
-
1
votes1
answer61
viewsIncrement margin in pixels in Sass
I need to create margins, top, right, left and bottom, I would like to loop in Sass from 0 to 100. Final CSS would look something like this: margem-top: 1px; margem-top: 2px; margem-left: 66px;…
-
1
votes2
answers369
viewsBackground-color does not track content
Well, I have the code below and I have a question: Code .um { background-color:#000; width:600px; height:280px; margin:0 auto; /*centralizando horizontalmente esta div*/ } .dois {…
-
1
votes2
answers868
viewsCSS javafx Color Text
I have a Button and I am using javafx, what I need: the text of the button is written Search, I need the 'B' to be in red and the "uscar" to the default color, I have tried everything and I am not…
-
1
votes3
answers8546
viewshow to convert pixel to percentage? css
Hi, I’ve been learning a little bit about responsive websites, and.. so far the only solutions I found were, put different styles for each size. e.. the percentage, which in my view would be the…
-
1
votes1
answer304
viewsSort html with grid Angularjs
I need a hint on how to sort elements in my home without appearing blank spaces. The problem is: I have a page that lists all the registered services, this page is with pagination that lists the…
-
1
votes1
answer1412
viewsJquery or CSS - How to create an animation that flashes back to the original?
I have the following Jquery code: $(".add").click(function(e) { $(".saida").addClass("backgroundRed"); }); and the following css: .backgroundRed { color: #FFF; background: #c1272d; } It’s all right,…
-
1
votes3
answers1770
viewsIncrease word size, placeholder attribute value of text inputs?
How do I increase word size, text type input tag placeholder attribute value? <input type="text" name="login" placeholder="Login" required id="login">…
-
1
votes1
answer407
viewsCss not found html page - Springframework
Hello. I’m having trouble getting the css, js, fonts etc of my project on my pages. I am using Spring, typing the address of the css files in the browser but the system is not able to find the…
-
1
votes2
answers3258
viewsChange background of A when mouse in LI
I have the following code: <li class="menu-item"> <a href="http://stanlee.com.br"> <span class="jaw-menu-href-title">Home</span> </a> </li> When I pass the mouse…
cssasked 7 years, 9 months ago Felipe Viero Goulart 3,693 -
1
votes1
answer1703
viewsHow to use google Charts Offline?
I’ve already used Charts and still think about using it in a system I’m developing! Only this system will run off! Is there a library or any way to use Google Charts Offline ?
-
1
votes1
answer195
viewserror while using @media
This is the page: http://www.dinamicaimoveis.com.br/novo/admin the css that’s the one: ... media screen and (min-width: 0px) and (max-width:480px) { .sessoes { width:100%; } .menu { background:none;…
-
1
votes4
answers340
viewsIs there a way to set width specified in html as the max-width of this element in css?
The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display:…
-
1
votes3
answers186
viewsHow to pick up middle item with javascript or css?
Guys, I have the following situation: <div class="corpo"> <div class="item"></div> <div class="item"></div> <div class="item"></div> </div> This Divs…
-
1
votes1
answer65
viewsStyle in cluttered list
CSS * { margin:0 auto; } ul { list-style:none; margin:0; padding:0; } .menuPrincpal { } .menuPrincipal li { display:inline; } .menuPrincipal li a { display:inline-block; vertical-align:middle;…
-
1
votes2
answers795
viewsListing in PHP by clicking button and showing more results that don’t keep CSS?
I created a list that displays 6 results and below I have a "Show more" button that calls another query that displays 4 results. However, the results of this last query do not keep the CSS. It…
-
1
votes2
answers129
viewsChange cursor in "onhover" event to HTML5 <video>
I want to change the cursor to a "hand" when I move the mouse over the buttons: Play Stop Volume Fullscreen etc.. to a video player HTML5. At the moment, the mouse pointer when it passes over the…
-
1
votes2
answers550
viewsDo I calculate font size using css?
Could someone please explain to me how the calculation capabilities work for font sizes using CSS? Example: font-size:calc(1.73vw + 48.74px); Thank you
-
1
votes1
answer1603
viewsHow to make when the button is pressed it continues with different color
Hi, I’d like when you hit the button, it would change color and continue like this until another one is pressed. I tried with the :focus, but if press another element the color back. Buttons:…
-
1
votes1
answer115
viewsProblem loading a.gif file while updating the php page?
I have a problem in my code to load a gif when updating a page gif until it appears more does not come out is running straight. Can someone help me? Here is my javascript: <script>…
-
1
votes0
answers288
views -
1
votes1
answer1005
viewsHow to make responsive
I have this more advanced project , but I left it flat to facilitate the visualization and for you to help me =D , I tried everything possible using the media queries but nothing, I want the window…
-
1
votes1
answer564
viewsIcons do not appear correctly
Guys, I’m updating a website, and the home screen icons aren’t showing up. They only appear if I go to another page and then go back to home. the site is: www.artbordados.com.br In the browser…
-
1
votes2
answers53
viewsHow to select a specific contact form to format in CSS
I am working on a quick contact form on my page, and I need to format it in css with the following code: form.wpcf7-form { position: absolute; width: 250px; top: 165%; left: 65%; text-align: center;…
-
1
votes0
answers72
viewsOverlay links above the Fixed mask
I have to make an effect where the user enters and click on the link to turn on the light and when to leave turn off the light. The only problem for now is that the mask stays on the screen normally…
-
1
votes1
answer145
viewsResponsive site with %
Well, my doubt is a bit abstract, however I would like to hear some aspects regarding Responsive Site. I would like to know, what is the way a website will look the best for all screens. That is, if…
-
1
votes1
answer258
viewshow to use inherit and initial properties in css?
My CSS studies have resulted in finding the following properties: inherit and initial. The two at first seemed quite similar to me, but I really wanted to know is: Where I can use inherit and…
cssasked 7 years, 8 months ago Asura Khan 2,474 -
1
votes1
answer87
viewsHow do I join 3 backgrounds?
The thing is, I have a div with id="1". And I have three images, with 20 pixels each that I want to be my backgrounds, but I want my div to have all three backgrounds, so on the left side of each…
-
1
votes1
answer387
viewsG-Mail ignores CSS
Everybody, good afternoon, everybody! The g-mail kind of ignores CSS in the emails I do, it doesn’t even show up in the emails, and sometimes when it does, it changes the class from what I need to a…
-
1
votes0
answers32
viewsHow to make responsive texts?
I know that for normal elements, we can use the percentage, so that they are proportional to the screen resolutions. But what about the texts? What is the relative unit of measure, so that it is…
cssasked 7 years, 8 months ago Seu Madruga 2,481 -
1
votes1
answer285
viewsFixed footer below a form
I’m having a problem with the code of this site www.forcaemovimento.com.br I have a form that has some div’s with position:absolute to do the side effect. The problem is that the footer is behind…
-
1
votes1
answer939
viewsAlign Vertically Horizontally Aligned Objects
The idea here is centralizar verticalmente the radio button with his label (horizontally aligned). Where am I going wrong? <ul class="formasPgto"> <li> <input type="radio"…
-
1
votes1
answer128
viewsWhy is the page css not loaded when the url gets ? id=
Good evening guys I have a php page that when it receives integer values via GET the css is not loaded only if the parameters ? id= not inserted the styling is normally loaded. What may be…