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
-
4
votes3
answers57
viewsProblems with CSS opacity
I’m trying to put an image so it looks like this: but that’s not what happens, but watch my page; <div class="container-fluid"> <div id="conteudo"> <div id="apresentacao"> <div…
-
4
votes1
answer106
viewsHow to Detect DOM and API Resources
How to know if the browser supports certain methods, estates and events. Checking whether an object querySelector, querySelectorAll, addEventListener, classList exists via Javascript. I’ve been…
-
4
votes1
answer590
viewsAlert only once Session
I wanted to know how to make an Alert appear only 1 time for the user in the session, in the case the Loga user and appears a div with Alert informed Logged in successfully , after closing this…
-
4
votes2
answers680
viewsDisable css and image caching in the browser
Recently, I developed a project that had some drastic changes in its design, mainly by the side of css and images. In this, accessing it on some machines, I verified that to visualize its new design…
-
4
votes1
answer568
viewsHow to schedule an event on datepicker?
I have this code in javascript: $(function() { $("#calendario").datepicker({ changeMonth: true, todayHighlight: true, changeYear: true, showOtherMonths: true, selectOtherMonths: true, dateFormat:…
-
4
votes2
answers186
viewsBorder-bottom with linear gradient
I would like to style an edge for the H1, but in linear gradient, going from color x to color y (or transparency). I used pseudoclass (after), but with the gradient edge I can’t make it work.…
cssasked 8 years, 11 months ago Paulo Roberto 51 -
4
votes3
answers649
viewsLimit characters in div with contenteditable
I have a div with contenteditable="true" and would like the text that goes beyond 10 characters to be taxed with background red, as happens on Twitter. My main question is how to tax only the…
-
4
votes3
answers31945
viewsHow to put one div overlapping another using only relative position?
You may find it unnecessary, but it’s because of an effect I want to use, and my question is this, if there’s any way to put one div overlapping another using only relative position on both
-
4
votes3
answers273
viewsIncorrectly applied width media queries on mobile devices
I’m trying to use media queries on a website thinking about mobile devices, but I’m facing a problem: although the rules specify what to do when the width is small - and the same apply correctly…
-
4
votes1
answer2415
viewsHow to take the button out of an input file (without JS)
I got the following input file and wanted to know how to remove the button, so that in the box show only the name of the file *It is not necessary JS, I have seen some examples and remember that…
-
4
votes1
answer94
viewsHow to calculate columns equal to Skeleton
To .col-md-1 is calculated thus: 100/12 = 8.3333...3 in the Skeleton was otherwise calculated which returned the following result: .one.column, .one.columns { width: 4.66666666667%; } What logic did…
-
4
votes3
answers838
viewsUncheck a checkbox by clicking outside of it
How is it possible to uncheck a checkbox if I click another field of the site? The checkbox is used so that when the status is 'checked', it 'drags' my menu from -65% to 0 and appears on the screen,…
-
4
votes2
answers706
viewsHow to toggle images when clicking a checkbox?
In this my script I’m making a seat marker, but I’m not getting to change the images after the click in the checkbox, and every time the table chairs get misaligned. Type: checkbox marked shows the…
-
4
votes3
answers788
viewsHide description with ''Display: None " bad for SEO?
I have some links on the site and I will add a description to each of them, and hide the description, but I doubt if hide with display: none is bad for SEO. See how I intend to do <li><a…
-
4
votes4
answers82
viewsDoubt with height in a DIV
I have a problem that seems very simple to me and I’ve done it before, but I just don’t remember how! Assuming a page with 3 Ivs (header, content and footer) how do I make the content div take up…
-
4
votes1
answer2541
viewsHow do I leave a gray-tinted image in cross-browser css?
I’m trying like this: img { filter: gray; /* IE6-9 */ filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */ -webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */ }…
cssasked 8 years, 10 months ago Gabriel Rodrigues 15,969 -
4
votes1
answer38536
viewsHow to take the blue color out of links by ultializing CSS?
My teacher asked me to recreate the pages of G1, Globe Sport and Walmart. He wants the links "dead, so I use the <a href="#">. The problem is that there the contents of a turns blue, and the…
-
4
votes3
answers19347
viewsHow to align text to the right in a list
I’m trying to make a change to a code I have and what seemed relatively easy to me became a difficulty, what I have is this: <div class="top-bar"> <div class="container"> <div…
cssasked 8 years, 10 months ago adventistapr 5,498 -
4
votes1
answer451
viewsHow to adjust text around a 'div/image'?
I’m having trouble adjusting a text in a div who owns another div inside it, which sits at the top left. Below is an image that explains better what I am wanting to do, I hope you can help me. Thank…
-
4
votes2
answers1652
viewsInsert "div" html element with javascript
How can I enter a div according to its class or id? Exemplification <div id="main"> </div> <div id="about"> </div> <div id="more"> </div> They are stored in a…
-
4
votes4
answers832
viewsCreate layout for PHP and . NET applications
Work in a public body and we have numerous web applications in PHP and .NET. I’m working on a standard layout so we can maintain visual identity across all systems. Is there any way…
-
4
votes4
answers2615
viewsDrawing with CSS
Is there any way to draw a sheet like the image below, using CSS ?…
-
4
votes3
answers703
viewsPrevent Bootstrap Oil
I am using Bootstrap on my site and I am making a bar with navbar. The menu consists of a Brand, 3 "li" items, a search bar and a link. How could I do so when using on smaller screens or even when…
-
4
votes2
answers390
viewsTag <picture> does not work on mobile phones and IE11
I’m working with the tag <picture> to use its responsive function and inserting several sizes of the same image into a single object according to the screen resolution by the "media" parameter…
-
4
votes1
answer1322
viewsHow to change the color of buttons when selecting a radio input?
I have this form When you check the "Bills to Pay" radio input, I need the buttons to turn red. I’m using Angularjs, so I used ng-if, but the code was quite extensive. How could I do it in a simpler…
-
4
votes3
answers2052
viewsHow to avoid repeating html code?
Good night, you guys. The thing is, I’m using the bootstrap and I would like to know how I avoid repeating the same codes on all pages, because the header and footer are the same, it would make the…
-
4
votes3
answers267
viewsMeaning of the term "Fluid Layout"
In research, I came across a series of articles talking about Design fluido.But most without clear explanations. I want to know what that means in development Frontend?…
-
4
votes1
answer280
viewsHow does the Position property work?
I’ve read about the property position, but still can’t understand its purpose. Values absolute and relative didn’t get into my head. I also wondered when I should use this property.…
-
4
votes2
answers1310
viewstextarea with notebook lines style
I need to make a form for printing that could be typed in the browser or printed for writing. As it can be written on the printed sheet, I need a style in the textarea that draws the lines as if it…
-
4
votes2
answers536
viewsHow to place 3 Adsense link ads side by side?
How to place 3 Adsense link ads side by side like this ?…
-
4
votes2
answers2097
viewsMake div appear when right-clicking mouse
Guys I use the function (Hover) to make a DIV appear, I wonder if there is a way to make it appear when right-clicking. That is, a child DIV appears when I click on a parent DIV right-click. Follow…
-
4
votes1
answer292
viewsOpen a div according to your ID
I have a menu that, when right-clicking, it opens in a DIV. Everything happens within a tr (line) of a table. My problem is this, have a table with several tr, and each of them receives a ID. And I…
-
4
votes1
answer6938
viewsHow to pick up mouse position relative to page?
I have a menu that opens when I right click on the table. The problem is that I could not get the mouse position when the page has scroll. I noticed that you’re taking the Y X based on my monitor,…
-
4
votes1
answer234
viewsRecover css with jQuery
Galera set up a table where I click with the right button and the line turns yellow, and displays a menu. Everything works 100%. The problem is that when I click elsewhere and the menu closes and…
-
4
votes2
answers245
viewsHow to toggle between List and Gallery
What I intend to create is similar to Grid view used in systems of the type Mercado Livre. It would be a function done in javascript that switches between a List or Gallery, using the same data in…
-
4
votes2
answers2918
viewsIs negative margin a bad practice?
Use a margin with negative value is a bad practice (bad acting)? Example: margin-top: -3px;
cssasked 7 years, 8 months ago Arthur Menezes 2,210 -
4
votes2
answers3746
viewsHow to make a vertically zebrad table (switch column colors)?
I know how to make a table horizontally zebrad, ie, each row with alternating colors (the famous color yes and color no). I wanted to know now how I could by css switch the colors of the columns:…
-
4
votes3
answers46491
viewsPath to access html folders ,css,php etc
Could someone explain me this Nives system to access folder in the use of languages like html,css and php (../)(.../)(./).?
-
4
votes2
answers966
viewsHide a div when showing another
I’m having a problem hiding one div when I show another. If I use .conteudo_up instead of the id2 I can do this effect, but it does for everyone at the same time and I want for each one…
-
4
votes1
answer269
viewsCSS - Selector "::"
In studies of CSS selectors, we have seen the selector :: in a few moments. However I did not find specific reference on this keyword :: isolated. That is, I only saw it being applied in selectors…
-
4
votes2
answers2479
viewsHow to get this scroll effect - when scrolling the page?
On this site, by making any scroll movement at its beginning, it scrolls to the end of the section. I would like to know how this effect is executed correctly. http://seunovopontodevista.com.br/ Can…
-
4
votes2
answers1152
viewsHow to redirect Css to only one Div
I’m creating a website where I need to use a unique css file for the div responsible to display the services performed on it. The problem is that this css file is downloaded from somewhere else, and…
-
4
votes2
answers1687
viewsHow to know if the scroll position is on top of a Section?
I don’t know if it was clear, but I’ll illustrate, I have several sections on my site, and when I give scroll I wanted to perform some effects with Javascript, how do I know to know when exactly the…
-
4
votes1
answer43
viewsWidth caculum with jquery
Hi I’m making a test site and I have a div of promotions with width of 100%, a ul with 100% width and 4 li with the products. When you are more than 4 li, I want my div promotions to…
-
4
votes1
answer982
viewsFloat Right is superimposing div and invading div from below
Hey guys, I’m here one more time asking for help, I tried everything, I even used overflow:hidden, but it got much worse, so I need help, I have The code of the div: width: 100%; display: block;…
-
4
votes0
answers96
viewsModem layout, is it possible to change?
When entering the configuration page of my modem 192.168.0.1 I have the following layout: I would like to reformulate this page, but I do not know if it is possible, I searched the internet and…
-
4
votes1
answer850
viewsHow to put special characters with ::after?
Here’s the code, I want to put the character : h1::after{ content: © }…
-
4
votes2
answers197
viewsCheck if it is the class
How do I check with Javascript if it’s really that class in CSS? Example: if(é a class) { } or another example, if it is not the class if(!.minhaClasse) { } Is there any way to do this, with pure…
-
4
votes1
answer442
viewseffect on input using jQuery
Guys I’m making a input with an effect similar to that of Android. Good here in this example I put a input and a select. The input is working perfectly, when he is with the Focus he turns blue.…
-
4
votes1
answer185
viewsBug textarea with padding in Firefox
The padding-bottom in a <textarea>, works normally on Google Chrome and in other browsers when scrolling the scrollbar, but in Firefox the spacing is always "fixed" and the texts appear cut.…