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
answer140
viewsHow to change logo as you change page
Summary: Personal I am wanting to make a modification in the site of the company where I work and do not know how to do it. PROBLEM: I would like to create a form in Javascript that as it changes…
-
0
votes1
answer45
viewsHTML element readjusts with screen resize
I have the following code. var logo = document.getElementById("svgLogo"); var area1 = document.getElementById("area1"); var area2 = document.getElementById("area2"); var area3 =…
-
0
votes1
answer813
viewsHover image using bootstrap
I’m trying to apply an effect with Hover, but I’m not getting it. I am using bootstrap 4. I managed to accomplish what I want or almost that, the problem is that appears below and not on the image.…
-
0
votes1
answer72
viewsI don’t understand what’s going wrong with my headline
Hello I’m trying to make a header in HTML + CSS for learning, and I’m not understanding why it’s not working, follow below the code: footer { background-image: url(../img/fundo-rodape.png);…
-
0
votes1
answer200
viewsPlace image outside the Bootstrap container
I need to place an image outside the container, so that the right margin remains the container standard (responsive), and the image always stays together with a "button". Follow the image below to…
-
0
votes1
answer46
viewsClick Section and open DIV
I want to click on Flap Change the class of the div that contains the attribute to show. It is originally with a class that makes it hidden.I have the js function there but it’s not working Who can…
-
0
votes1
answer24
viewsWhat to do? Safari IOS does not display elements within jQuery UI generated dialog
Good morning. Introduction: I have a site in production using jQuery UI for a long time. Except for the problem I present, all dialogs show everything in Safari IOS. The problem: I developed a new…
-
0
votes1
answer46
viewsToggle CSS Classes
Now I come with another question because I’m a beginner in javascript. Well, I have this function that when clicking on the registered tasks tab appears a div with a select(combobox). As I do for…
-
0
votes3
answers939
viewsHow do I rotate the square when I click the button? JAVASCRIPT
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
0
votes1
answer162
viewsHow to change column text by javascript?
I made an effect using DRAG AND DROP that is nothing more than dragging a block to another trello-style column. Inside this block I would like to exchange a status text for when it leaves from TO-DO…
-
0
votes2
answers860
viewsCSS class change another CSS class
The code below has almost the result I would like, however the effect only works in subsequent classes in the case of the example from class two to the three, the class two following the one may the…
-
0
votes2
answers73
viewsProblem with HREF import
I can’t really explain what’s going on with my code, because I’m a beginner in programming. But here’s the thing: I imported href into my css file; into html: <html> <head> <title>…
-
0
votes6
answers304
viewsAlign images to the center
How do I line up these images at the center? I tried to use the <div class="text-align">, but it didn’t work <code> <section id="team"> <div class = "text-align" <div…
-
0
votes2
answers81
viewsHow to align elements on the page?
Hello, I’m beginner in HTML and CSS, I’m learning by hobby to develop themes for social network Tumblr, I’m making this layout for test purposes as I did draft in Photoshop: Only when coding it, the…
-
0
votes1
answer77
viewsMask problem for input type="text"
I’m trying to get the input type="text" only accept numbers and keep the date format as I insert the numbers. //Exibir no formato de data function mascaraData( campo, e ) { var kC = (document.all) ?…
-
0
votes0
answers84
viewsHow to remove summernote style
Hello, I’m using summernote and putting a width on a div only when I save my style just disappear and it puts another one in place. I will send photo and also my html code. <div class="div-btn"…
-
0
votes1
answer187
viewsHow to access a javascript object in another HTML page?
I’m designing a dynamic table using javascript and localstorage. The project has two HTML documents one showing the table with a list of registered students, and 3 options: Enroll a New Student,…
-
0
votes1
answer30
viewsColumns of a table if overwriting html
Table tag columns are overwriting. It’s getting like this: How it should look: Code: <table class="table…
-
0
votes3
answers95
viewsI can’t use javascript in my html
I would like to connect a function to work with finite automata. The intention is that from the forms I can work with her js: var ListaNo = new function () { this.Nos; function CriaNo(idNo){ var…
-
0
votes1
answer94
viewsDropdown Hidden
Good afternoon, I have a problem in my JS menu where there is a dropdown menu: <!-- MENU USER --> <div class="collapse navbar-collapse navbar-user" id="navbarSupportedContent"> <ul…
-
0
votes2
answers60
viewsText is not centered within a div.Row element
I’m creating a sort of online wallet and I’m organizing the Layout. However it seems that Bootstrap or CSS is not able to interpret my command. It does not centralize WEEK texts in the middle of…
-
0
votes2
answers32
viewsGraphic with SVG
I have a chart made with SVG generated by a Java code that I found on D3.Js that I am trying to use it in a college job, but I have a problem to put it inside a div. I am setting the chart size…
-
0
votes3
answers101
viewsFunction if you change css
Good afternoon! I have a filter on my site that shows certain partners of my company, but whenever I select a filter that has few logos of the partners the Divs are all left. I need a function that…
-
0
votes0
answers61
viewsRemove all strings before keys via javascript
I have a css file and I would like to generate a JSON, for this, the first step I found would be to remove the entire selector before the brackets .meuSeletor { propriedade: valor; } for {…
-
0
votes2
answers3176
viewsWEB project organization standard (HTML, CSS, PHP)
I don’t know exactly how to organize my project, I’m doing it this way: /produtos/ cabecalho.php index.php rodape.php inside the header and footer has a if(verificacao != 1){sai da pagina} and my…
-
0
votes1
answer204
viewsHow to leave scroll of a div as main scroll?
I made a page in bootstrap and also a smooth scroll, but this scroll is not of the page but of a div. The main scroll of the page I took, and the page itself is inside that div. Is there any way I…
-
0
votes3
answers496
viewsHow to change Columns display order?
I got the following: .container{columns:3;} span{width:100%;display:inline-block;width:100px;background-color:red;margin-bottom:10px} <div class='container'> <span…
-
0
votes2
answers181
viewsReduce image along with div
Hello! I am editing a Front of the Website of the company in which I work and I am currently in the part of the navigation menu. Every time I scroll down it "shrinks" but the Company Logo remains…
-
0
votes1
answer134
viewsLimit the size of an item in flexbox
I’m trying to make a Toolbar with flex, but the icons are taking the whole Toolbar when I step over with the cursor: @media screen{ :root{ --primary-color: #29f1c3; } *{ margin: 0; padding: 0; }…
-
0
votes1
answer248
viewsStyling components in React
I am starting my studies/development with React but I have a problem in the stylization of the components. Even though importing the CSS file into my component, the style is not picking up. How can…
-
0
votes1
answer338
viewsTable with Page Break overwriting fixed element
I have a script from a legacy system that creates a table with the data coming from the php database. The script was developed to store everything in a $html tag and at the end give an echo. At the…
-
0
votes1
answer99
viewshow to create css for pdf
Good afternoon to all!! Guys, I’m developing an application that generates a pdf, and this pdf needs to have a certain formatting, however, I’m a little lost here... for example, I create a div,…
-
0
votes1
answer318
viewsPlace one col over another with bootstrap 4
I need to place a column col-lg-7 of bootstrap 4 over another column col-lg-6 I’m wearing a container-fluid in the father div but I have no idea how to get the result of the image shown below:…
-
0
votes1
answer76
viewsHow to "misalign" Ivs with Flexbox?
Good night, you guys. I’ve been taking a beating from the flexbox for a long time, as I can’t "misalign" my Ivs and leave them without vertical space when one div is larger than the other. Does…
-
0
votes3
answers885
viewsTable not getting Responsive bootstrap 4
I’m venturing into the frontend just like the backend. I’m having a hard time making my table responsive. What is the best way to make a user profile,leaving it in cell phone size? <table…
-
0
votes1
answer341
viewsHow to fix the position of a header independent of the screen size?
Basically I’m building a burger menu and the same has this blue bar as shown on the screen below: But the more I press this screen, the smaller the size of this bar, which ends up hiding the button:…
-
0
votes1
answer25
viewsIs it possible to leave each category link a color in wordpress?
Hi! I am trying to color the background of the link of each category, leaving each one of a color, but I wanted you to style ONLY the links of the categories on the homepage, I do not want to change…
-
0
votes1
answer64
viewscontender by changing and changing size of img
html { box-sizing: border-box; } body > section { display: flex; justify-content: center; width: 100vw; } section#categorias > div.internas > div { display: flex; flex-wrap: wrap;…
-
0
votes1
answer183
views -
0
votes2
answers141
viewsMake Divs to be inline
Good morning, I’m having trouble leaving this box below with the inline display, the div box is the div that encompasses everything, the div hentaiBox is the div of each box, atulamente are all…
-
0
votes1
answer75
viewsWhy isn’t Navbar showing up?
I’m doing a navbar from scratch, but I’m not succeeding when it comes to triggering as the ul element as a block. I was wondering why. On the console it appears that the class is being added and…
-
0
votes1
answer105
viewsHow do I join the background of a div with that of the footer?
I would like to remove that blank space between the footer and the input div. I tried to create a "span" for both to leave only a "background-color", but it did not work. Upshot: Code:…
-
0
votes1
answer25
viewsWhy the animation effect is gone
I’m doing a side sidNav, I was able to animate it but the effect that the animation makes goes away, when the animation ends, I wanted to know why this is happening My code <!DOCTYPE html>…
-
0
votes1
answer171
viewsCollapse pushing the Div
I created a Collapse but I’m not getting it to push the Divs down, thus getting superimposed on the content. I tried some code in CSS but it’s not working. HTML: <div id="collapsible-menu">…
-
0
votes1
answer220
viewsHow to mark an X in part of an image when firing a function in Javascript?
I mapped an image, and with the coordinates of some parts, I made sure that by clicking on a selected part, a function is executed. But I would like to know how to mark an X or make some visual…
-
0
votes1
answer522
viewsHow to format data within a DIV(alignment and source)?
I need to correctly align the information inside the following Ivs, place the image on the left, the title in blue next to the image on the right and the temperature just below the title in blue, as…
-
0
votes1
answer35
viewsPick up classes with - (hyphen)
Good morning. Today I came across a problem I’m not sure how to solve. A promotion system generates some classes for some elements on my page, the problem is the way it generates, it puts…
cssasked 5 years ago Lucas de Carvalho 6,427 -
0
votes1
answer77
viewsProgress Bar with hours
I need to make a time line, for that I’m using a progress bar. But I got a problem, the red scratches, they match the hours, but they don’t add up, as we can see at the last red scratch, it comes…
-
0
votes1
answer1153
viewsChange the color of the scrollbar with vertical menu
Good morning. I have a vertical menu that is larger than the page and therefore will appear with scroll. I’m not able to change the scroll style as colors and thickness. I’ve tried everything, but I…
-
0
votes2
answers897
viewsHow do I use the properties of a parent element in the child’s CSS?
I have a <div> with fixed values, and it has a <ul> internally, as shown below: <div id="personalizado"> <ul> <li>item</li>…