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 answers74 viewsHello, I have an unwanted horizontal margin between two Divs, I would like to know where the error isfunction typeWriter(elemento){ const textoArray = elemento.innerHTML.split(''); elemento.innerHTML = ''; textoArray.forEach((letra, i) => { setTimeout(() => elemento.innerHTML += letra, 75 *… 
- 
		-1 votes1 answer328 viewsHow to lock the background screen and allow only Scrooll in the menuI have a problem here, I created a menu that has scrolling, but when I have to scroll, I need the background screen to be locked and just scroll as the menu... Here are the photos: The code is as… 
- 
		-1 votes1 answer381 viewsHorizontally center the html css page logoAs I center my logo horizontally, this arrow of mine is not very horizontally centered, I wish it were... Can anyone help me? I tried the top: 50% and it didn’t work... @charset "UTF-8"; html {… 
- 
		-1 votes1 answer210 viewsAlign controls with bootstrapI have this view @{ ViewBag.Title = "ExcelFinancing"; Layout = "~/Views/Shared/_Layout.cshtml"; } <!DOCTYPE html> <html lang="pt-br"> <head> <meta name="viewport"… 
- 
		-1 votes1 answer54 viewsAdjust elements on an imageI’m developing a generator formulário de resposta I need to adjust the elements (black circles) using css, but I’m not succeeding, I tried with the property of position but unsuccessfully the tebela… 
- 
		-1 votes1 answer61 viewsAdd HTML with Javascript and RemainI want it to be possible to add and then when update the page it stays saved in my HTML. .menu { width: 100%; height: 70px; background-color: #56B8BD; max-height: 70px; } .menu ul li { float: left;… 
- 
		-1 votes2 answers49 viewsChange table name with :Nth-of-typeI’m trying to change the name of a column of my table through css, tried something like: th#colunatableprod:nth-of-type(1):before { content: "Produto"!important; } My table: <table… 
- 
		-1 votes1 answer786 views
- 
		-1 votes1 answer263 viewsput a div inside a function in phpI have this command that checks the database and checks if the user is locked, in case it shows an error message, if it is not locked it continues the normal execution. What I’m wanting is when it… 
- 
		-1 votes1 answer362 viewsHow to Decrease Paper SizeI am making a print with css print on the Bematech MP-4200 TH printer, my content is in a good size customized by css, however I would like to decrease the size of the paper because this leaving a… 
- 
		-1 votes2 answers481 viewsBackground with Blur and div of the middle withoutI have a section, occupies the entire area of the browser window, and with a background image filling its entire area. Within this section have a div centered and with another background image. I’d… cssasked 6 years, 11 months ago jones_root 43
- 
		-1 votes1 answer110 viewsWhat part of my zoom div is possible?Suppose I have a div de com overflox: Hidden; and put a background image in another div, which is inside her. the image occupies the entire background of the div, but I want the image when it is… 
- 
		-1 votes1 answer76 viewsWhen trying to link a NAV, the CSS style gets messyGood morning guys, I’m starting to learn front-end and I came across a problem I’d like to understand why it happens. I’ve got that bit in my code: <div class="box-item"> <div… 
- 
		-1 votes2 answers467 viewsHow to align menu using CSS (Only)Hello, I am developing a website and, after being able to create a dropdown menu, I had a small problem. The same is not spaced, and the sub menu that appears is arranged horizontally. I have no… 
- 
		-1 votes1 answer73 viewsRadio change input value TimeI’m trying to get the selected radio to change the default value of an input time I checked that with javascript or jquery I can but I can’t do it the way I need to. I have 3 Radio and 1 input time.… 
- 
		-1 votes1 answer104 viewsHow to close the bootstrap modal?I need to close one modal by clicking on submit. He registers objects via Javascript and therefore does not refresh on the page. So far so good. The problem is that the modal doesn’t close... I did:… 
- 
		-1 votes1 answer55 viewsHow to format specific links?The way I learned, is that I apply the style to all links, I wanted to know how I could do it, here are two Divs I wanted to apply the styles only in the first div with the id="links1" Html… 
- 
		-1 votes1 answer86 viewsModal window only opens and does not closeI have a modal window inside of a div, when passing the mouse on top, I make the div change color and opens a modal window with photo, the problem is that this modal window just opens, and just… 
- 
		-1 votes2 answers147 viewsExchange images for text when Navbar expands (and vice versa)I have a problem. It’s a responsive menu that expands. The menu elements are images of buttons, which glow when the mouse passes over. I did this using JS and Bootstrap. So far, so good. The problem… 
- 
		-1 votes2 answers6921 viewsCss flex element spacingHello, Someone who can help me build a static grid if you can call it that: What I want is to be able to add 3 blocks per Row these with a fixed size equal, with tendency to grow vertically. And… 
- 
		-1 votes1 answer170 viewsNav element alignment and float/position questionsGood night. I’m creating a Nav that contains an H1 on the left as logo and a ul on the right and I need to align the two to the center vertically, I’ve tried everything I know and it’s no use. Then… 
- 
		-1 votes3 answers45 viewsI can’t access the valueWell, I’m doing a project to calculate IMC, with html, css (bootstrap) and javascript. The problem is that I can’t access the values that users type in the input, whenever I give an "Alert" appears… 
- 
		-1 votes2 answers48 viewsHow do you make a left DIV the same height as a large right DIV?I have a page of type one-page with 3 columns. The central column has the content of the site. And the right and left columns need to repeat an image vertically throughout the page height. <body… 
- 
		-1 votes1 answer41 viewsHow to leave an image placed by responsive css.?Hello guys I have a little problem here, it’s as follows... I made the footer of the site all right, with 100% fluid width but I started doing the desktop version and the background img that I put… 
- 
		-1 votes2 answers33 viewsHow do I change the title of the browser tab repeatedly?<html lang="pt-br"> <head> <meta charset="UTF-8"> <link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet"> <script… 
- 
		-1 votes2 answers790 viewsHow do I sort a given array object in alphabetical order?Hello! I’m a beginner and I’m making a site with HTML + CSS + JS and need to sort some items. It is a fictional site that aims to catch the Pokemons that are already being presented and ordered by… 
- 
		-1 votes2 answers945 viewsHow to place images next to each other in columns?I want to leave the images right next to each other with the same size of margins and columns etc. How do I? .w3grayscale { margin-bottom: 120px; width: 200px; margin: 10px; position: relative;… 
- 
		-1 votes1 answer76 viewsHow to make a horizontal progress bar using css Transform scale with scale3d?var progress = 0.0 => 0.99 => 1; //tipo de cálculo que eu gostaria... var obj = { 'will-change': 'transform', 'transform': 'scale3d('+progress+', 1, 1)' } I have two methods that makes… 
- 
		-1 votes2 answers148 viewsAutomatic resizing of div according to window widthMy doubt can be a bit of a beast and surely many will find me half dumb, although I already have some experiences with front and end. The doubt and the following, I want to make a site that extends… 
- 
		-1 votes3 answers340 viewsChange CSS property when doing :Hover over another menu linkI need to make sure that by hovering the mouse over the menu links, it is removed or changed to transparent the background of the link that is active (from the page that I am on). Demonstration:… 
- 
		-1 votes1 answer95 viewsProduct card with "Learn More" - BreakingI’m making these cards with flexbox to open more information on the right side, but when it arrives in the last column, the content is broken. I have tried to remove the break info and of card, but… 
- 
		-1 votes1 answer910 viewsnpm ERR! code EJSONPARSESomebody please help me solve this problem? C:\Users\teamc\Desktop\Electron>npm i asar --save-dev npm ERR! file C:\Users\teamc\Desktop\Electron\package.json npm ERR! code EJSONPARSE npm ERR!… 
- 
		-1 votes1 answer27 viewsCSS problem, page sizeI’m starting in HTML and CSS and I don’t know how to configure the positions of the objects in the page. My CSS: #Register_BackGround_Img{ width: 400px; position: fixed; top: 19%; right: 42%;… 
- 
		-1 votes1 answer66 viewsMargin does not push content to the centerI recently asked a question because my margin top did not push my div down, following the example in the previous question I was able to solve, but now, using the same explanation of the previous… cssasked 6 years, 6 months ago Fernando Munhoz 163
- 
		-1 votes1 answer665 viewsHow can a div not overlap another div?I have a div that is my vertical menu, next to it I want to put a div that fills all the remaining space that will be where will load my content, but what happens is that one div is overwriting the… 
- 
		-1 votes3 answers51 viewsModal’s button doesn’t work!I own a modal that warns about Policies and Terms of Use. Basically it will close if clicked on any area outside of it and the close button, but I tried to implement (unsuccessfully) that it was… 
- 
		-1 votes1 answer96 viewsHow to solve this problem in the collision?If I check the collision only horizontally, the program picks up the entire width of the scene and not just the div. Code: <html> <style> #dv{ border:1px solid red;… 
- 
		-1 votes1 answer27 viewsbackground with possition: Absolute; does not workI am trying to build this site . I positioned the elements with position: Absolute; . I tried to add the background but it does not appear . .smartphone{ background-color: grey; width: 400px;… 
- 
		-1 votes1 answer67 viewsCentralize contentI’m making a keyboard in HTML and CSS but I’m not able to center the content, or is left as in the example below or right, how can I center? #calculator { width: 720px; height: auto; padding: 0;… 
- 
		-1 votes1 answer92 viewsI’m trying to customize my bootstrap template but there are no changes to the pageI’m in visual studio working on ASP.NET-MVC and I have a bootstrap template for my website. I wanted to add a blurred background image to my login page. I put this code in the css file: bg.wallpaper… 
- 
		-1 votes3 answers109 viewsHow to put 0.5s Transition in Tooltips<html> <head> <style> a.tooltip-black, a.tooltip-white { position: relative; color: red; text-decoration: none; cursor: help; } a.tooltip-black:hover, a.tooltip-white:hover {… 
- 
		-1 votes2 answers751 viewsProblem in converting the input values into Real, example: R$ 20,00I created a Script to format Input values for Real Currencies, but there is a problem, when you put text, display "Nan", I need that can only type number and not text. var atual =… 
- 
		-1 votes1 answer33 viewsPut gif in TypewriteHello, I would like to add a gif in front of a text using the Typewrite effect. Css code: html { height: 100%; overflow: hidden; } body { height: 100%; width: 100%; color: #fff; font-family:… 
- 
		-1 votes1 answer34 viewsBackground css does not workGood evening, I would like to know why when I use this css style in my "bg" class in my html it works, but when I use the HTML5 version, the background style goes completely away, I searched a lot,… 
- 
		-1 votes1 answer152 viewsSave/maintain checkbox status (selected or not selected) after closing the browserI’m making a page that has a table with values coming from the database. It has 4 columns and more than 300 rows. A column has a checkbox for each row, the other has the name of an object and the… 
- 
		-1 votes1 answer1845 viewsShow image when mouse over a div - CSSOn the site cited has an effect that when you hover over the link it appears an image. https://www4.benner.com.br/ .ul_ajudamos{ margin: 20px 0 0 20px; list-style:none; padding-right: 500px ; }… 
- 
		-1 votes1 answer129 viewsz-index does not work/* CSS Document */ @import url('http://fonts.googleapis.com/css?family=Open+Sans'); *, *:before, *:after, *:active, *:hover { font-family: 'Open Sans'; margin: 0; padding: 0; /*border: 0;*/ outline:… 
- 
		-1 votes3 answers36 viewsStyling in menusI’m creating a menu for a classified site, and I wanted to put a rounded border (border-Radius) on the 'publish advertisement' item, using css. I leave my menu code here: <nav class="menu"… 
- 
		-1 votes2 answers281 viewsJquery works on console, but does not work on fileI am running a test on a plugin in worpdress with form that has select , where when the user selects the option with "value:9" emits an Alert ("Working") and if it does not select the this option… 
- 
		-1 votes1 answer73 viewsMake image preview by changing the background-image of the divI am willing to allow the client to change the cover photo of his social network, but I need to make a preview for it. I can’t put an img tag on it right now 'cause it’s gonna mess up the whole…