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
votes0
answers142
viewsUsing the bootstrap navbar-Collapse
When using the navbar-Collapse of bootstrap small screen (mobile), wanted to minimize when choosing a menu item. Someone’s already done it?
-
1
votes0
answers128
viewsCustom jquery mobile icon intel xdk
I can’t place a custom icon in my header! Can anyone help? html: <a data-role="button" class="icon-myicon" data-icon="myicon"></a> css: .ui-icon-myicon{ background-image:…
-
1
votes1
answer341
viewsHeight 100% in content
Hello, I’m having a height problem follow the code the world below for better understanding: HTML: <html> <body> <div class='wrapper'> <div class='cabecalho'></div>…
-
1
votes2
answers432
viewsPHP output inside a CSS modal
Hello, I’m trying to put the result of a quiz made only with PHP and some JS (used only to hide the previous question and show the next one) inside a modal, made only with HTML and CSS, because I’m…
-
1
votes3
answers2938
viewsAssign CSS value to an HTML via Javascript
I created this FIDDLE to check if what I was doing was right or wrong. Apparently it’s wrong: My goal here is Javascript assign values of CSS to an element of HTML, in this case the value top. I was…
-
1
votes2
answers225
viewsCSS does not work on pages generated with Errordocument
I’m having a problem when I’m customizing ERROR 404. I put the following code in the . htaccess file: ErrorDocument 404 /erro404.html And I created a custom page error404.html. The page is onpage,…
-
1
votes1
answer189
viewsHow to reset CSS of various HTML files included by require
At the suggestion of this answer, I’m trying to use the normalize.css to reset the styles between one require and another, but it’s hopeless, the CSS of the later file completely interferes with the…
-
1
votes2
answers3417
viewsChange CSS when scrolling the page
I was wondering how to swap the CSS of a page after it gets a scrolling out of its default location. An example of a site that uses this is Deviantart. That menu of TODAY BROWSEWHAT’S…
-
1
votes2
answers137
viewsPure CSS element animation
As I can perform a scheme in pure CSS with a ball simulating the traffic, the ball would be circulating in the lines, see a scheme SERVER --------> YOU /\ | | | | * |____ ME <_______| It got a…
-
1
votes1
answer345
viewsResponsive typography (Flow Text css)
Well, I was studying on responsive texts and found the css class of Materialize that leaves the texts responsive according to the width of the screen. Open the source code to try to understand how…
-
1
votes0
answers364
viewsAnchor does not stop at the beginning of the div and link does not remove blue subline
Good afternoon guys, I’m building a site of only one page and navigation by anchors but I’m having a problem, by clicking on the menu that redirects to the anchor of the div corresponding to the…
-
1
votes1
answer62
viewsHow to Work with Grunt
I have read a lot about some tools used to facilitate the workflow on the front end and I met Grunt, I understood what his function is and when he can be useful, but I have the following question,…
-
1
votes1
answer1231
viewsChanging overflow-y:scroll style
Personal how do I make the bar with transparent background and not white equal in the image below: I’ve tried to ::-webkit-scrollbar-track ::-webkit-scrollbar-thumb…
cssasked 9 years, 2 months ago user27585 -
1
votes1
answer80
viewsList as equal 3 column-Count
Well I think this is in css what is not my thing, I would like to be listing the results of the comic and pass the next result to the next column tried to use ( abridged) SELECT * FROM anuncios…
-
1
votes1
answer4355
viewsLink does not work when clicked
I have this code from a menu and when clicked on the item Bio the link does not work: <ul id="ul-menu"> <li class="li-menu"><a class="scroll"…
-
1
votes1
answer68
viewsHow to block cell phones from accessing the website?
Good afternoon, I have a website I want to make sure that when they access the site through mobile phones that a message appears that the mobile application will be available soon and do not open…
-
1
votes2
answers44
viewsMake an image grow proportionately to specific limit
Make an image grow proportionally to the limit of an area follow the example in the image below…
cssasked 9 years, 2 months ago Fabio Henrique 2,156 -
1
votes1
answer6426
viewsPutting an image as background on primefaces
how do I put a background image in primefaces. I’ve tried some shapes but none worked out. The closest to a good result I arrived was using <p:graphicImage/> but when I minimize a menu or do a…
-
1
votes1
answer72
viewsJquery does not return second image in the list
Apparently, the code is correct, it’s as follows: { if( $(".ativo").next().size() ) { $(".ativo").fadeOut().removeClass("ativo").next().fadeIn().addClass("ativo") } else {…
-
1
votes1
answer141
viewsLinks and content on the same page without frames
I’m creating a simple site, based only on HTML5 and CSS3, in it are two columns, one being a <nav> to contain the links, and the other being a <section> to contain the content. By…
-
1
votes1
answer77
viewsHow to perform a 250px horizontal slider per click?
Good morning guys, I used the instagram API to show my profile photos on the website and could not find any solution Carousel that didn’t conflict with Magento’s jQuery, so I started making the hand…
-
1
votes1
answer335
viewsWhen I start a session in Wordpress, the template layout breaks
I am developing a Wordpress template for a client, but when I soon in wp-admin, then the slide show does not work and the layout breaks, everything looks like CSS error. But if I open in anonymous…
-
1
votes1
answer36
viewsFOD element identification standard
What is the pattern of HTML identifier names , ex : <form id="alterar-nome-form" th:action="@{/conta/alterarnome}" th:method="put"> </form> Or <form id="alterarNomeForm"…
-
1
votes2
answers82
viewsAdd additional column in row
I have a Slider in my project where I have a large image displaying the image of the current slider, and then right side, a column that contains several miniatures in the form of squares with the…
-
1
votes2
answers130
viewsIs it possible to set the font size dynamically?
I’m having to develop some views, and frankly define my knowledge of CSS as structural. I wonder if it is possible to create a method, without using Javascript, to set the font size to be used in…
cssasked 9 years, 1 month ago Guilherme Lautert 15,097 -
1
votes1
answer90
viewsCell reordering in Bootstrap
At the moment I have a layout that is like this, using Bootstrap: [-nav/header] [-1-][-2][-4] [---3---][-4] [---3---][-4] [---footer--] And I would like to display it like this in mobile navigation:…
-
1
votes1
answer106
viewsUrlhashlistener picking up the wrong item (Owl Carousel)
I’m using Owl Carousel on a Landing page. I added some thumbnails, and used Urlhashlistener to associate the thumbnails to the respective image, but the link is opening the wrong image. It seems…
-
1
votes3
answers866
viewsImage with horizontal hr centered vertically in half
Good, I have here a problem that in putting one <h1> followed by an image and a <hr> as in the following image. With the following code: <div id="bola"><h4 style="text-align:…
-
1
votes1
answer94
viewsTop alignment with a centralized element
I have a div and I need to put a text to the left, another to the right, and a icon centered, all aligned on top. I managed to reach this point, but so far I can’t align them on top: <div…
-
1
votes0
answers49
viewslinear-gradient with Inherit does not work
Why the attribute is inherit does not work when associated with property linear-gradient? Example: background: linear-gradient(to bottom, transparent 0%, inherit 100%); Note: Code tested in browsers…
-
1
votes1
answer901
viewsPHP - Send to another client id page when you click on a cell
I have a list of clients each in a cell. I want, by clicking on the cell, send to another page the id of the selected client, safely. Without showing the id in the link. Generating the tables:…
-
1
votes1
answer52
viewsHow to use the Calc() attribute in the LESS Preprocessor
When using the attribute Calc() in LESS I came across the following problem: When compiling the code height: -webkit-calc(100vh - 6em); the output resulted in the calculation of 100 - 6 and adds the…
-
1
votes1
answer307
viewsProblem with CSS and ASP Button
I’m trying to put a button ASP with a certain class CSS but I’m not getting the button ASP operating in accordance with CSS. If the button is HTML goes without a problem. CSS code: .images_1_of_5…
-
1
votes2
answers800
viewsHow to get the CSS that was defied on another page?
Hello, I’m new in front-end development, sorry if my question is a bit rough, but what I would like to know is if it is possible to get the CSS file that was set in a page and uses that same CSS in…
-
1
votes2
answers15582
viewsWhy does the background-image url search for the image inside the Content folder?
I have a CSS like this: #hero { height: 100%; background-image: url("~/img/bg-img.jpg"); background-position: top center; padding: 0; overflow: hidden; } When I rotate, the image does not appear,…
-
1
votes1
answer149
viewsResponsive image, does not redeem correctly
I’m developing a website, and an image is not resizing as I expected, I have the image: <div class="cover"> <div class="cover-image" style="background-image :…
-
1
votes2
answers286
viewsHow to Show Half of Background
I have two <div>, One is superimposed on the other. And I need the one on top to only show half the background. That is, the other half will be transparent so that the other half of…
-
1
votes2
answers74
viewsCombobox Css Help
Can someone show me how I can get that arrow with that dashed next to it ?…
-
1
votes1
answer330
viewsCSS Media Queries (several statements followed)
Hello, I want to know if it is possible to get a cleaner and more compact solution of the following CSS. @media screen and (min-width: 630px) { .tab ul.login{ right: 29%; } } @media screen and…
-
1
votes2
answers592
viewsWhen clicking on a name, appear in another div
I have a project developed in Bootstrap, which when clicking on link Products, will open a Modal ( from Bootstrap ) with the listed products. However, I would like that when clicking on one of the…
-
1
votes1
answer182
viewsNavigate tab input with values
First of all it is not the same question that did previously, is a supplementary question. I currently have the following model on Jsfiddle that works regularly, you will pressing tab and the scroll…
-
1
votes2
answers2015
viewsGenerate rows of a table with different colors with repeat loop
How to generate rows of a table with different colors? Each time the loop is executed generate a row with a predetermined color? Ex.: foreach ($data as $key) { echo '<tr>'; echo '<td>' .…
-
1
votes4
answers368
viewsDifficulty with CSS in a JSF2 project
Greeting to all, I’m new as a Java programmer with JSF projects, I want to put an image as the page plan, and I don’t know how to do. This is the structure of my project; I tried to put the line of…
-
1
votes1
answer31
viewsResolution compatibility
I am developing an interactive map and need to position some images inside it, I am using the top and left properties to position the element, the problem is that the position changes in different…
-
1
votes1
answer43
viewsReturn CSS file classes using Regex and PHP
I have the Following CSS: .icon-a{ background:black; color:white; } .icon-b{ backgroundwhite; color:black; } .icon-c{ background:blue; color:yellow; } I wanted a PHP script that could read the CSS…
-
1
votes1
answer2303
viewsArrow in menu with CSS only
Arrow under the drop down menu? I’m trying to make a arrow in the dropdown menu, so I used the following code: But the z-index (other objects are getting on top of it) in this code does not work and…
cssasked 9 years, 4 months ago Felipe Jorge 1,479 -
1
votes2
answers349
viewsChange Bootstrap icon in Mobile version
Guys I have this code: <i class="glyphicon glyphicon-arrow-right"></i> which is a bootstrap icon of an arrow to the side. I want to make sure that when a person connected to the site is…
-
1
votes1
answer467
viewsOverlay div on before, css
How to overlay the contents of the div on the before element of itself? I’m teening to make sure that the straight line doesn’t show up when I’m in the words, so it looks like this: ---------…
cssasked 9 years, 4 months ago Vinícius Lara 3,750 -
1
votes1
answer196
viewsSelection of the Dropdown Menu
I would like when showing the menu dropdown, to li that contains it was still selected. I wonder if there is a way to do this only with CSS. Follow the example. Thanks!…
-
1
votes2
answers685
viewsJquery how to set a value in a field with CPF Mask?
I have an input using an example CPF mask : $("#cpfDependente").mask('000.000.000-00'); and I’m trying to set a value in the input this way $("#cpfDependente").val(dependente.cpf); It correctly…