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
answer2234
viewsMy bootstrap carousel isn’t working!
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" type="text/css"…
-
1
votes0
answers37
viewsProblem with a modal button
Well I am with a problem I made a modal button, but it is only opening the first photo, customer 1, the other 3 ( client 2 3 4) nothing happens qnd click .. .nav.nav-justified > li > a {…
-
1
votes1
answer146
views -
1
votes1
answer230
viewsHow to put a scroll in the tab system
I’m setting up a flap system, it’s working 100%. The problem is when I open it on a mobile screen it has to scroll in the header of the tabs, same as the Android system. Could someone help me?…
-
1
votes2
answers1193
viewsHow to exchange the position (css) attribute of a div
I have a div of id = 'retangulo' with position:absolute;. When the page loads, this vertical rectangle only appears in half. I want when the person rolls the site at a time when the whole rectangle…
-
1
votes2
answers352
viewsPlacing scroll in the horizontal
I wanted to put a scroll horizontally, so it can be accessed on mobile screens. How do I do this? .menu_topo_geral { width: 100%; height: 50px; background: #616161; } .menu_topo_geral div { cursor:…
-
1
votes1
answer501
viewsDoubt about zooming in Media Query
I want to make a responsive design, the mobile version is already ready and working perfectly, but when zooming the layout breaks. How do I fix it, or better, use zoom in media query? Is there any…
-
1
votes1
answer394
viewsHow to overlap a div in the footer of another div
How to overwrite a div in the footer of another div equal to the content calls of Wikihow. Looking at the CSS code I realized it is applied position: absolute for the div2 positioned at the…
-
1
votes1
answer842
viewsSpan alignment with css
I need to align the star icon ('material-icons') with the text ('span') and the menu icon ('overflow-menu'), all horizontal. Can anyone help me? I have to do this without changing the html…
cssasked 7 years, 11 months ago Hugo Borges 5,294 -
1
votes1
answer103
viewsCode only works when you restart your PC
I am creating an application mostly in PHP, and occurred a few times when making a call in Java, Jquery or CSS and sometimes even another page in PHP and does not work as it should. I went through…
-
1
votes2
answers931
viewsMaterialize CSS - sticky label at the top
How do I always pin my label to Top? Normal behavior: stays in input, when we click on input (Focus) it sits on top of the input <div class="input-field col s6"> <input…
-
1
votes1
answer207
viewsHTML5 video not running on mobile
I am creating a project in which I have a video rolling on the page in the background, the desktop version is working perfectly, but in mobile the video does not run and is only the blue screen (div…
-
1
votes1
answer685
viewsBetter center by margin:auto or text-align:center?
Searching for good HTML practices, what is the best way to centralize? I see that I can center the menu of a page for both options, but I wonder which is the best way and also which is the right way…
-
1
votes3
answers48417
viewsMake text have line break inside the div
Good need to make the text that is within the class div txt has line break. Follow the example of the code I have to change. .font-15, input, textarea, select, .container-head, .se-pre-con p,…
cssasked 7 years, 11 months ago Hugo Borges 5,294 -
1
votes2
answers1617
viewsGrab a css property with jquery
Could I check a css property with pure jquery or js? Note: Using is.(':Visible') is not feasible in what I need. Example: var display = $('.test').get('display').val() if(display == 'block') {…
-
1
votes2
answers6887
viewsCreate a modal with jQuery/Javascript only
I have a view Password recovery, where it will bring the following message: We will send password recovery information to the email below: [email protected] Where this view will already open with the…
-
1
votes3
answers34
viewsLine up and put div on the other
Well I created a div called 'notification'. Where I will put a text and at the end of it has a menu. Everything is working fine, but when the text is too big and the screen is small, the menu button…
-
1
votes2
answers78
viewsalignment of div and summarize text
1 I need to place everything inside the horizontally aligned 'container-head' div. 2 The text of div 'c-txt' has to be summarized with ... 3 The div 'c-Bt' button has to be at least 100px long. Can…
cssasked 7 years, 11 months ago Hugo Borges 5,294 -
1
votes1
answer106
viewsDatetime Picker
I’m using this datetimer Picker datetimepicker The date appears like this: 2018 January 30 - 10:00 And I want it to look like this: 2018-01-30 10:00 You can do it in jquery or I need to change the…
-
1
votes1
answer380
viewsDisplay fixed alert independent of scroll position on page
Well I’m mounting a confirmation alert, by clicking on the link it will appear. Everything is working, but when the page and very large the alert does not appear, because it goes to the top of the…
-
1
votes0
answers333
viewsHow to map an image to function responsive
I have a picture of a bed and I needed that when the mouse Hover happened on the pillow a popup, but I do not know a way to map this image, I would use map of html but I will not have…
-
1
votes1
answer336
viewsword-wrap: break-word; not working vertically
see a functional example in this jsfiddle the text: "text should be broken" it is not breaking and respecting the space of td. Thank you.…
-
1
votes1
answer37
viewsChildren of a selector: one with margin left and one with right
Next, I always had this doubt have this html structure <!-- wrap1 --> <div class="wrap"> <div class="filho"> (...) </div> </div> <!-- wrap2 --> <div…
-
1
votes2
answers1724
viewsCentralize items of a DIV
How do I keep these three items centered? Note that there is a space left on the right side. CSS div.menu { background-color: #333; overflow: auto; white-space: nowrap; } div.menu a { display:…
-
1
votes0
answers140
viewsBugado design! (but with cache works, "unlock")
I was setting up a table with scroll and I came across the following bug in css: If I press f5 2 times the table ends up fixing and stays like this: When I clear the cache(ctrl + f5) the error comes…
-
1
votes3
answers1923
viewsProblem with image height
The left Banner looks like this. I tried to do a gambit, but it didn’t work out so well. -> .slide-1 img{min-height:480px;} My HTML and CSS code: .slide{width:100%; height:480px;…
-
1
votes5
answers3338
viewsHow do I get a div to start hiding?
I have a Function here that makes the div look invisible and visible, but it gets visible, I would like it to get invisible.
-
1
votes2
answers1708
viewsConfigure stylesheet with PHP
I’m setting up an administrative system and one of the administrator’s options is to control various page color settings. However I’m having difficulty finding the best way to put these settings on…
-
1
votes0
answers149
viewsFacebook iframe with higher height in Firefox
I set the height to 230px, but in Firefox it gets bigger than in Chrome, IE and Edge This ends up interfering in the iframe margin with the element below, which gets smaller in Firefox Can you tell…
-
1
votes1
answer35
viewsHelp with the Gulpjs
I’m having a bit of a problem with Gulp’s tasks. I am trying to listen to the changes of the files with watch and update the browser with Sync browser. Follows the code: var gulp = require('gulp');…
-
1
votes1
answer700
viewsJavascript validation does not work
Person, all right? So, I have an alert div (that of bootstrap) with the None display and Hidden visibility I’m getting it by id, both in css and javascript, only it doesn’t work. It changes the…
-
1
votes2
answers2699
viewsHide entire table row by javascript
Good evening, I’m trying to hide by javascript an entire row from the table below, can help me? <!DOCTYPE html> <html> <head> <style> table { border-collapse: collapse;…
-
1
votes0
answers291
viewsOpening mobile camera through the site
Good evening,I have a project in html, is already in responsive form, so there in the project there is a need to open the mobile camera, I would like to know how I can do this.
-
1
votes1
answer2091
viewsDiagonal background
Css : .bio { width: 100%; min-width: auto; height: auto; min-height: 600px; background-color: #fff; background-image: -webkit-linear-gradient(30deg, #fff 50%, #004E95 50%); } That generates : But…
-
1
votes1
answer1287
viewsPull php echo into a div, no refresh
I have a div in html, it has None display, I fill in the form and the data goes to a file. php and the same gives me an echo saying that the data was entered into the database, only that I wanted…
-
1
votes2
answers150
viewsDiv Slider between images on Hover
Good afternoon, I need to set up a project for a photography client and the same asked me something I had never done, I tried to search the internet but I could not find something to help what I…
-
1
votes2
answers400
views"Shadow" effect inside the box
Hello! I was trying to make a kind of "inner shadow" on a div of mine, but I can’t. Does anyone know? The style is similar to the news boxes in the initial section of the keyboard…
-
1
votes1
answer59
viewsHow do I make a pixel wide background-image not static on a website page?
I have several background images with a certain width in pixels and underneath these images I have one or 2 titles with background-color (with a rectangle of color behind also with the width in…
-
1
votes2
answers152
viewsDivs background with a larger side q other
Good afternoon guys, could someone please explain to me how this effect is done on the slope background, or slope, depending on how you look.. kkk I tried the results on the page, but I can’t see…
-
1
votes3
answers532
viewsChanging site color via GET parameter
First of all I wanted to inform you that I am beginner in programming, I am learning by myself. I have a question, I don’t want hand-kissed codes or anything, just an explanation so I can put it…
-
1
votes2
answers414
viewsCSS Menu on Diagonal
I am developing a layout of a mobile application, which will be developed in IONIC, the client sent us an example, how I would like it to be the menu of the application, as you can see in the link…
-
1
votes2
answers413
viewsHow to add css to all elements whose id contains "..."?
I have several elements whose id contain, for example, "elem", may be "%elem" or "elem%", may have characters before the String elem as after or before and after ("%elem%"). And I would like to add…
-
1
votes0
answers106
viewsWhy is this javascript/html/css slow for Mobile?
I’ve researched a lot, I’ve worked on the code but nothing helps... someone can tell me why this game runs on the furniture, and some way to optimize it?? complete code:…
-
1
votes3
answers944
viewsJavascript - Function that returns value from a CSS property
Good evening (good morning or good afternoon) to all! I need a function that returns the value of a css property. Follow my code: CSS: .teste{ opacity: 0; display: none; } Javascript: function…
-
1
votes3
answers324
viewsAdd <option> automatically each month
I have a payment system, which has a select that displays the months since the system started, follow the code below: <select name="situacao"> <option>Fevereiro/2018</option>…
-
1
votes1
answer44
viewsWhy does this compressed css code stop working?
Why do some codes fail to work when being compressed? As is the example below. I used this website. Normal Code and working: .radio-1:checked ~ .star-item-1:before, .radio-1:focus ~…
-
1
votes1
answer98
viewsPrint single element on all printing pages
I’m developing a system WEB and at the time of printing the screen I need to put at the end of each page a imagem, this is possible? So far I have the following code: .hide{ display: none; }…
-
1
votes2
answers115
viewsNavbar-Brand display on smartphones
I am Newbie and would like a help with a problem I am facing on my mobile site. I am using bootstrap. That is the result: The text Squish Monsters is pasting on the navbar, the correct result should…
-
1
votes3
answers115
viewsPage rendering Asp.net Disabledcssclass
I have the following problem, I have this code on a page: <div class="modal-footer"> <asp:Button runat="server" ID="btnCancelar" Text="Cancelar" class="btn btn-sm btn-danger"…
-
1
votes1
answer34
viewsCheckbox Materializecss label
I need to build this image structure, but I can’t get the radio input to stay on top of the image using Materializecss. Does anyone know any solution? Hug! Ex of HTML: <p> <input…