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
votes2
answers478
viewsSelf-adjusting menu with li’s
How can I create a self adjustable menu without using any table, just read? That is, create a horizontal menu where li’s adjust in width without exceeding ul size as you add items! This site here:…
-
1
votes0
answers260
viewsDynamically created content over dynamically created content not working
Hello, I have a "static" page (between quotes pq it is dynamically generated by PHP, but let’s say static in the eyes of Javascript) and I’m trying to create it dynamically, because it will become a…
-
1
votes1
answer221
viewsCenter Text block vertically according to the size of the next div
My partners, I’m losing my hair with this problem I’m facing. I have some bootsptrap pages, in which each container has a row (Row) and the same has two columns (each with the classes: col-Xs-12…
-
1
votes1
answer40
viewsFont Awesome has CSS Reset?
When using Bootstrap for example, it has an internal CSS Reset. The same thing happens when using Font Awesome? If you use Font Awesome in a project, you will need to add some CSS Reset or it…
-
1
votes2
answers4206
viewsFields aligned in form
Good night, I used float: right;' to put some fields of a form side by side, but they descend a field below. 'Full Name' and 'Date of Birth' should be side by side, but the date field goes down.…
-
1
votes0
answers79
viewsProblem with Firefox Printing
I have a system structure basically like this: <ul id="tabs" class="nav nav-tabs"> <li><a style="border-color: transparent;" data-toggle="tab" onclick="alterarAba(1)" href="#tabs-1"…
-
1
votes0
answers860
viewsBootstrap Carousel with multiple items and default Carousel on the same page
I’m having a problem applying CSS to a specific page. When I try to apply CSS in the .carousel-inner .prev/.next only in the second Carousel it doesn’t work. If I withdraw the #secondCarousel (when…
-
1
votes3
answers6399
viewsHow to zoom in on an image by hovering over it?
I’m creating a tattoos website that contains a photo gallery. I would like when the user hovers the mouse over an image to be enlarged to a larger size. I’m a beginner in building websites, I…
-
1
votes0
answers71
viewsSite Buga all when hosted
I am learning front-end and I made a website using bootstrap here, I decided to climb it somewhere free to start the joke and to my surprise he is having some problems. The impression I have is that…
-
1
votes1
answer538
viewsGive ID to a Jumbotron
I have a few pages with a Jumbotron of the same formatting on each page. I need you to have background-image different on each page. How can I give an ID to each of these jumbotrons, so I can edit…
-
1
votes1
answer258
viewsWhite spacing when you zoom in full on the mobile page and screen
Guys can not find the error that is generating this white band on the screen when I give a full zoom and the mobile screen when I access by it. <!DOCTYPE html> <html> <head>…
-
1
votes1
answer404
viewsHow do I know which elements (js, css) are taking the longest to render?
My page has taken a long time to load (20~30 seconds), sometimes it comes to crash my browser during this process (and not only with me, other people have complained about it). I did some loading…
-
1
votes1
answer1489
viewsHow to make the menu appear in bootstrap in mobile resolution without clicking the button?
Can anyone help me with css to leave the menu already activated like this when it goes into mobile resolution? http://guiapetsaocarlos.com.br/ When you are in small resolution, it opens an icon to…
-
1
votes1
answer1093
viewsBackground image does not appear when running the project
I have a JSF+Primefaces project and I have a css that puts a background: <h:body style="background-image: url('../images/textura.jpg');"> When I run the page works perfectly, but when I give a…
-
1
votes2
answers2176
viewsHow to mouse one element and disappear with another without js
On my website, I have a block div that slides when passing the mouse, but where it passes there is the Facebook like button that is in another area of the site. No way I get that block div cover or…
cssasked 9 years, 7 months ago Danillo Eder 605 -
1
votes1
answer139
viewsBootstrap 2 does not float image
I’m having a problem trying to put one image next to another with Bootstrap: <ul class="thumbnails"> <li class="span4"> <div class="thumbnail"> <a href="#" class="thumbnail…
-
1
votes1
answer209
viewsInsert square in caption googlemaps
I’m trying to add a caption to my googlemaps map. To assemble the legend I created a square with the color that represents a value. css: .square{ width: 48%; height: 0; /* Quadrado */…
-
1
votes1
answer357
viewsChange font size
I am trying to change the font in an html document, however, if I enter the font name, it does not change and the font size goes back to the original. This is the code I’m using: p { padding:20px;…
-
1
votes1
answer4674
viewsCSS does not load, Resource Interpreted as Stylesheet but transferred with MIME type text/html
Hello guys I am working on an MVC project but I came across a css error that had never happened to me. By staging CSS the browser returns me a rendering error. in firefox: 12:08:16.973 The style…
cssasked 9 years, 5 months ago Lourençon O. 484 -
1
votes2
answers1447
viewsForward and backward slide Javascript
I have a photo slider on my page, with buttons to go back and forth. I can’t get these buttons to work. At first I imagined that the logic to advance would be the same used for the slide to advance…
-
1
votes0
answers85
viewsPrint html page without losing settings
I wonder how do I print through a JS function, all the information contained within a <div>. However you would have to print only what contains in div, without losing colors and formatting.…
-
1
votes1
answer639
viewsHow to turn select option into option with images?
I’m doing a rating system on my website. I have a select option with a 1 to 5 vote I’m trying to turn that select option with icons to take the vote but I’m not getting it I’d like to know if it’s…
-
1
votes0
answers237
viewsPrimefaces Menubar does not enter div
Good night. My menubar is not entering the div in which it is contained. <header> <h:graphicImage library="img" name="logo.jpg" id="logo"/> <h:form> <p:growl id="messages"/>…
-
1
votes1
answer58
viewsFor + slideToggle in Jquery does not work
Can anyone explain why my code doesn’t work? I don’t know exactly how many divs will generate, but the maximum is 25. So I wanted each click button to specifically open the div "glue" attached to…
-
1
votes2
answers1476
viewsHow to pin a footer to the bottom even with a lot of content
I’m trying to dynamically add content to a page, but when I add too much content, the footer is fixed at the initial height of the screen, and the text is on top. I need it to drop dynamically when…
-
1
votes2
answers3282
viewsUse Submit to submit a form, within modal, using bootstrap
I’m trying to submit a form within a modal, only it’s not submitting what I’m sending in the tag . My view: <button type="button" class="btn btn-primary" data-toggle="modal"…
-
1
votes1
answer334
viewsCreate a random combination with CSS classes using javascript or jquery
Hey, guys, I was wondering if anyone knows a solution for how to make a combination of css classes using javascript or jquery? What I would like is to have links and each of these links have several…
-
1
votes2
answers486
viewsProblems with css, menu does not work
It just doesn’t work, "li". <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> /* reset do html */ html, body,…
-
1
votes2
answers1274
viewsBootstrap News Slider
Great, I got a slider problem. I have a slider with 3 news boxes and I want to run 3 in 3 boxes, so far so good, is already working, but the problem and when I pass to mobile device the content is…
-
1
votes1
answer735
viewsDynamic circle using css and javascript only
I’m trying to develop a dynamic circle using only css and javascript, at first I don’t want to use any library and I can’t use the html canvas. My idea is to be able to define the size of the circle…
-
1
votes2
answers9312
views -
1
votes1
answer68
viewsSkip page 5 in 5 Blocks
Good afternoon, I’m returning data from a table and showing in CSS, but I need to display 5 blocks per page and every 5 blocks I need to insert a snippet of code to force the browser to go to…
-
1
votes1
answer803
viewsimport Gotham book font with css
I’m trying to import the Gotham-book font, it’s in the fonts/GOTHAM-BOOK.ttf folder, but although I try to import it doesn’t change anything. How can I do this? .table td{ border: 0px !important;…
cssasked 9 years, 4 months ago Felipe Jorge 1,479 -
1
votes1
answer598
viewsHow to create CSS classes containing other Bootstrap classes
Is it possible to create CSS classes containing other Bootstrap classes? I have searched but found nothing about it. Something like: .minhaclasse { .nav-tabs > li.active > a, .nav-tabs >…
-
1
votes0
answers66
viewsText with color contrast to the background using Chroma.js
In the following file Generator of random themes I have the code that uses Chroma.js to check the color of bg by making the text contrast, but it only generates one color for each background color…
-
1
votes2
answers1946
viewsCustomization of buttons
Put more beautiful buttons in place of these forward and back arrows. <div class="wrapper"> <div class="header"><!-- --><button class="prev go" data-go="-1"…
-
1
votes1
answer230
viewsTable alignment
Why is the page data of the rounds of this table are not aligned correctly? I’d like them to stay the right way, or be aligned like the rest of the other rounds, like2,4,7,9 without having the…
-
1
votes2
answers7951
viewsHow to dynamically modify CSS using PHP
I need to modify some CSS styles according to a condition in PHP, so I gave a search, and so I saw it is necessary to include a header in the CSS file and change the file .css for .php, or create an…
-
1
votes1
answer545
viewsWhy doesn’t it change the edge of the input
The input confirmarsenha_cadastro should stick with the red border but this is not happening, why? </script> $(function() { var dialog, form, dialog = $( "#painel_logar_registrar" ).dialog ({…
-
1
votes1
answer228
viewsHow to make a div of equal height to the div container? (container larger than viewport)
Since I don’t want to define the height of the container div, because I want it to increase dynamically according to the content? <div class="conteiner"> <div class="esquerda">…
-
1
votes2
answers1890
viewsMargin problem (or padding) in panel with Bootstrap list
I have this margin (or padding) ruining my dashboard, how do I remove it? I’ve tried several things with CSS, changing the padding, to margin etc, but nothing worked. This is the margin I want to…
-
1
votes0
answers59
viewsHorizontal scrolling on iPhone5
The site opens perfectly on all devices, except on iPhone 4 and 5. In these they are with horizontal scrolling, as if it were bigger than the resolution. http://homologacao.programamaistop.com.br/…
-
1
votes1
answer287
viewsHow to ignore the height of an element inside a CSS automatic height box?
I’m a beginner in HTML and CSS and I’m doing a free theme work for my course, but I ended up getting stuck at one point. I have the following code in an excerpt of my HTML: <section id=#first>…
-
1
votes0
answers24
viewsHow to use the jquery-panelsnap() onSnapFinish(); event
I have a question in jquery-panelsnap plugin (http://guidobouman.github.io/jquery-panelsnap/) this is a plugin that works with session transition from scroll. It works very well, but instead of…
-
1
votes1
answer726
viewsMenu Fixed Scroll Top
I made this code so that when I scrolled the page the MENU would be fixed at the Top. That is, always the user view. var nav = $('#outermainmenu'); var lia = $('.sf-menu > li, .sf-menu > li…
-
1
votes2
answers160
viewsCSS error in Jquery Fullcalendar when using Google Chrome
I’m working with the Jquery library FullCalendar and I have a function that paints certain calendar lines according to one condition. The function works perfectly in Internet Explorer, but in Goolge…
-
1
votes1
answer194
viewsShow badge at the edge of a button
I have a button and a badge with the value being updated with Jquery, I want the badge to be at the edge of the button. Does anyone know how to set up?
-
1
votes1
answer5329
viewsHow to center a button inside a responsive container?
I’m doing a free theme work on HTML and CSS for the college, but some modifications I made to make the site responsive prevent me from tweaking an element in the center of the container. I have a…
-
1
votes1
answer216
viewsSeparate Styles in Three Column Division
I am currently doing the Prototype of an Interface where it will have the page divided into 3 sections: 1) A lateral column on the left side with width:25%; where the user form will be. 2) A column…
-
1
votes1
answer19326
viewsHow to add image as fixed background?
Instead of the common white background on my site, or instead of setting another background color, I want to set an image as background. I want this image fixed, without moving with the scrolling of…