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
answer62
viewsAlign DIV dynamically like a stained glass window
Good afternoon I’m on a personal project and one of my inspirations is the Google Keep layout, where the Divs line up and fit together as if they were forming a stained glass window. I did some…
-
0
votes2
answers76
viewsChange backgroud from one class to another event
I have the following code: .line-item:hover td { background-color: yellow; } .item-text:focus + .line-item td { background-color: red !important; } <table border="1"> <tr…
-
0
votes1
answer138
viewsCustom context menu recovering table id
Good guys I’m trying to set up a custom context menu that will work within a registration table. The problem is that I need to take the ID inside each line () and call it in the menu link (Edit.php?…
-
0
votes2
answers3920
viewsWebsite is not getting responsive with Bootstrap
I made a site using bootstrap, but it is not getting responsive on mobile, it simply appears as if it were on a monitor and then with scroll bar both horizontal, and vertical...…
html css twitter-bootstrap bootstrap-3 responsive-layoutasked 8 years, 7 months ago Gabriel Garcia 207 -
0
votes2
answers520
viewsTaking the total in pixels of an element passed in variable in percentage
I’m riding a div which must be an exact square, but this square must be based on the square itself width that is being set up with pocentagem (%), but need the total value in pixels. EX: 5% = 105px…
-
0
votes1
answer271
viewsMenu effect inside the table
People, when right-clicking on the word menu a small menu opens. How do I make this happen inside the table’s (row) property? document.oncontextmenu = function() {return false;}; //não deixa abrir o…
-
0
votes2
answers139
viewsJquery Show does not work in td
I have the following code snippet: $(".item2").hide(); $("#show").chick(function(){ $(".item2").show(); }); <script…
-
0
votes1
answer113
viewsMedia queries or multiple sheets of styles?
In a matter of making the site fast and responsive, which is best? 1-Use Media Queries and set resolutions in one style sheet only. 2-Use various style sheets that will be called in HTML according…
-
0
votes1
answer151
viewslink CSS in a Spring MVC project
Take a good look at the picture; I tried to put it on the page like this; <!-- Latest compiled and minified CSS --> <link rel="stylesheet" type="text/css" href="resources/css/style.css/>…
-
0
votes1
answer45
viewsThe Rule is not applying to the elements
I made a basis with a class system for a certain color to an element. Even putting the rule it does not accept. Example: <span class="mc c0 s1">Olá Mundo :D</span> In CSS it looks like…
cssasked 7 years, 10 months ago FRNathan13 2,183 -
0
votes0
answers74
viewsMenu leaving margin on the left
I can’t find that mistake. My Monitor has 1024px and body set to width: 97.65625% which gives 1000px. The menu (ul) has 7 items (li's) each li with 141.7px plus 8 bordas of 1px every gift 999,9…
-
0
votes1
answer33
viewsHow to make a background with a set of images?
Well, my question is this, how can I do a background of a div in css, with a set of images and not just 1? Thank you.
-
0
votes1
answer74
viewsPlace secondary Ivs next to each other inside the main
Well it is as follows, I have the following code, what I intend to put the Divs that are inside the div with id="Goncalo" next to each other in the form of a straight line, that is, I want it to be…
-
0
votes1
answer5912
viewsDarken background with text on image
Is there any way to darken a background image without affecting the text that is on it? .slider-principal{ content:'\A'; top:0; left:0; opacity: 0.8; } .slider-principal p{ color: #fff; bottom: 0;…
-
0
votes1
answer809
viewsDifference between position Absolute and position relative
Briefly, what is the difference between position: absolute and position: relative in CSS?
cssasked 7 years, 9 months ago Lucas Barbosa Fonseca 27 -
0
votes0
answers29
viewsCan I use display: flex when using viewport?
I’m a beginner in developing responsive websites and I’m using the tag: <meta name="viewport" content="width=device-width, initial-scale=1.0"/> And besides in container construction I’m using…
-
0
votes2
answers111
viewsHow to prevent an image from uploading to mobile?
I’m trying to prevent certain images to be uploaded on mobile, all are with display:None but know that they will be loaded by default, anyone knows any alternative that nay either using the…
-
0
votes0
answers54
viewsTablet menu
I’m working on a framework but I’m having difficulty adding the toggle menu, because I would like it to appear below 850px, I tried to use media quare, but it didn’t work, it keeps appearing whole…
-
0
votes0
answers34
viewsImage that goes "Filling"
There is how I put an image and put a filter to be black and white, and as I want the image will get colored? Example: I have an image of an item that I want to conquer, it has stages to be…
-
0
votes1
answer37
viewsProblems when selecting
Hello! Well, I have a little problem... I just can’t explain. My problem is that what you are seeing in the image, the size when selecting is much larger than the font... I hope you understood. I’d…
-
0
votes2
answers146
viewsSpacing between tbodys
I have an item listing table with groups of lines (tbody) and would like to add spacing between them, not that I haven’t already done, but I’ve been looking for a "less gambiarra" way to achieve the…
-
0
votes2
answers2379
viewsFixed side vertical menu with limited scrolling
How do I make a menu like that of Wordpress that is vertical, fixed and has a scrolling of its own that is limited to its ends: var last_scroll; In wordpress the element div gets a "position:Fixed"…
-
0
votes2
answers1024
viewsHow to create a "template" for pages?
I am new in website development, programming, etc., my beach is Design, but I would like to know how you do when you need to repeat some layout in all pages of the website. For example: I need to…
-
0
votes1
answer37527
viewsPin header at top when scrolling page
A while ago I was looking for how to put header and footer fixed at the top and bottom of the page respectively, adjusting to the content that would be between the two, and I got with the following…
-
0
votes1
answer243
viewsCannot read Property 'nodes' of Undefined
I’m getting the ERROR below when trying to implement a stylization in my project with Stylus. The same goes for background: url(...); and I think for any other attempt related. I found in the Github…
-
0
votes0
answers272
viewsTransform defined dimensions into percentage for pixels using jquery
At first I want to apologize for the typical beginner question. But I am a whole day trying to find in pixels the dimensions of certain element of my page but I can’t. $(document).ready(function ()…
-
0
votes0
answers110
viewsCSS - Row with col-Md-6 containing photos is not correctly aligned
I have a list of eight photos, and then I have a button that carries two more photos. However, the photographs do not appear correctly aligned as a hole always appears without any photograph. The…
-
0
votes0
answers166
viewsProblem loading CSS file Sass
I am facing a problem where when generating the CSS file, where this is generated by a task done through Gulp. When interpreting Sass and generating CSS, the file on the site only changes if I…
-
0
votes1
answer91
viewsDotted effect on select and button in Firefox
Is there any way to remove this stippling that appears when you click on a select or button in firefox?…
-
0
votes0
answers55
viewsHtml5 css3 element error does not stick to what was specified
how can I make so that the elements remain according to the first element of the column. because they are not as desired. in the first element I have two icones one of heart and one of check, but…
-
0
votes1
answer3861
viewsClear fields from a form
So guys I have a problem here which is as follows: I have 2 forms. The form 2 that is inside the form 1. And I wanted a button to reset only the fields of form 2. Only the input type="reset" that I…
-
0
votes1
answer598
viewsMenu above the page
I put the position:Fixed, and the site is up and down the menu, if I insert the position:relative the site is normal, but the menu does not go down with the scroll bar: code: #header-bar…
cssasked 7 years, 9 months ago user54225 -
0
votes1
answer206
viewsProblem with textarea in fluid layout
I got the following: HTML: <div class="sessoes"> <div class="formContato"> <h1 class="h1Centralizado">Fale Conosco</h1> <form id="contato" action="contato.php"…
-
0
votes1
answer108
viewsNav-pills open to left
I’m following the following code: <ul class="nav nav-pills"> ... <li role="presentation" class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"…
-
0
votes1
answer2792
viewsFunction jquery does not work
CSS: .nav { width: 15%; height: 800px; background-color: #421; margin-top: 55px; float: left; } .nav-min { width: 5% !important; background-color: #ccc !important; } JS: <script…
-
0
votes1
answer40
viewshow can I create the modal boxes by placing various different themes in the boxes
<!DOCTYPE html> <html> <head> <style> /* The Modal (background) */ .modal { display: none; /*…
-
0
votes1
answer653
viewsMy css file does not change formatting
A few days ago I had this problem. I put the css file in the home.php document <link href="css.css" rel="stylesheet"> formatting will, but then when I include other formatting in the css.css…
-
0
votes1
answer935
viewsDiv when opening is overlapping another div
I have the following code: <?php if(!isset($_GET["p"])) { echo $phpUtil->erro ("Produto inexistente!"); } else { $imagemAdd = "<img src='../_img/add.png' style='height:40px;' />";…
-
0
votes1
answer176
viewsChanging html hierarchy using jquery for responsive website
I’m making a responsive site when I came across a problem, in the tablet layout the menu is hidden so when you press the button it appears making a slide, but the customer wants the logo to appear…
-
0
votes4
answers5422
viewsI can’t center an ul inside the div
Hello! I can’t center an ul inside the div CSS .menu { clear:both; position:relative; width: 100%; } .sessoes { width:1000px; margin: 0 auto; } .menuNav { width:100%; text-align:center;…
-
0
votes0
answers50
viewsProblem with Table Alignment
I’ve already reviewed the HTML several times, but I think there must be something wrong with my CSS. The positioning I used for the images was: /*Produtos*/ .fsResDir{ width:280px; height:280px;…
-
0
votes1
answer1076
viewsManipulate the Scroll event in Jquery
Good afternoon, I have a Navbar that starts transparently i Seto this via query: $( "nav" ).css('border', 'none', 'important'); $("#hamburguer").css('background-color', 'transparent', 'important');…
-
0
votes1
answer182
viewsTransparent Navbar Bootstrap
Good afternoon, How do I make my page start with the transparent navbar and when I give the Scroll down it stay as "inverse"? I’ve tried to give a background-color: transparent !important, but it…
-
0
votes1
answer53
viewsCSS3 2 Problems
Let’s start with the codes HTML and CSS @charset "utf-8"; /* CSS Document */ * { margin: 0; padding: 0; } body { background-image:url(../../_img/fundo.jpg); background-size:cover;…
-
0
votes2
answers25
viewsCentering ul in a strange way
I have a very strange problem. css .lista { margin:0 auto; } ul.listaTopo, ul.listaRegistros { margin:0 auto; padding:0; width:100%; } ul.listaTopo { background-color:#000; color:#FFF; }…
-
0
votes1
answer93
viewsI am continuing a "form" of a website, using JS HTML PHP
My question is: When clicking on a radio button, the other "Buttons"/ other questions that are in the simulator should disappear, if press yes, if you press no there is no action, the button I want…
-
0
votes1
answer188
viewsResponsive slider in css
How to leave mine slider responsive. I’ve typed all the codes, and it’s on css pure ( I made it from galleries I downloaded on the internet, serving to change color, icons, etc.) ai would like to…
-
0
votes1
answer41
viewsProblem in a Breadcrumb using "Direction: rtl"
I’m having trouble using "Direction: rtl" and I’d like your help. I created a breadcrumb, when it reaches the screen limit size the end of it remains on screen and the beginning is cut. It was the…
-
0
votes2
answers179
viewsBuild responsive menu with CSS
Guys I set up a very simple menu, but I don’t know how to put it to be responsible. The problem I’m having is this. The 2nd menu is ok, but the first one generates a line break, because there are…
-
0
votes1
answer269
viewsSpring MVC + Maven + Bootstrap Problem
Good morning. I’m trying to put bootstrap on the index of my application but I’m not getting it, index does not read CSS. I searched on the Internet and from what I understood, css should be within…