Most voted "div" questions
The HTML div element is semantically neutral, and often used for grouping content for styling, and for content that cannot be described semantically by any other element.
Learn more…298 questions
Sort by count of
-
0
votes1
answer21
viewsEdit class style individually with JS
Hello, I would like to take all the Divs called "card" and check a text within the div, the value of the text set as width of another div. Example : But I only managed to make it work in one "card",…
-
0
votes0
answers71
viewsScript to click a button inside an iframe?
Good morning! I’m trying to create a pro Chrome extension to click a button each X seconds. The problem is that the part of the page that needs to run the script is inside a iframe and it doesn’t…
-
0
votes1
answer37
viewsJS - Div does not move around the screen
This code is a copy of a video that teaches js to beginners. It is practically an exact copy of what I see on the screen, but with me it does not run at all. The only thing the 'ball' does is go up…
-
0
votes0
answers53
viewsHow to keep all Divs in their positions without side scroll
I am working on a personal project and while I was doing the HTML and CSS part of the code I arrived at this problem, the div that is in the middle pushes the div from the right side menu, creating…
-
0
votes1
answer21
viewsHow to prevent Hover from changing other Ivs?
My Hover makes the div increase in width and height but this ends up making the other Ivs around move away because of the space on the page. I tried to modify the others by activating the Hover of…
-
0
votes2
answers31
viewsHow to remove lateral white space from div’s
Problems with the Newbie. There’s a blank space in my div’s: I didn’t even bother because it looks like it’s going nowhere, but: This affects the site on mobile, making this space blank throughout…
-
-1
votes1
answer378
viewsDiv with Hide and iframe inside, but link does not open
Upon entering the website, You can see that there will be a div following the mouse, and its content is an iframe. When clicking on this div or the iframe image, they disappear, however, the main…
-
-1
votes1
answer353
viewsDIV Just Disappearing On?
I was setting up a website for a Minecraft server. But I came across something very strange. I use Brackets to create HTML pages, and so I use the live preview tool. By placing a button in the HTML…
-
-1
votes1
answer355
viewsHow to do diagonally using after and skew?
People I need to make a site where the divisions are on diagonals. I was told to put an edge on the after of div, and use the property skew. But the edge on the after is not appearing. Below is an…
-
-1
votes1
answer2095
viewsHow to decrease bootstrap Ivs spacing
Good afternoon! I have a question/problem/problem. I’m using the bootstrap to make a layout, but the spacing between the Divs is very large, I wanted it to be smaller... has as? That’s how Ivs get,…
-
-1
votes2
answers693
viewsSave content from a div to a file. html With php or javascript
How do I save content from a div to a file. html With php or javascript. The intention is to generate a pdf later with this saved html. I saw that there are many topics here on the subject, but I am…
-
-1
votes1
answer1484
viewsSize of the Javascript Image
Good evening guys, I’m having a problem in javascript which is as follows: I need to dynamically create div in a for and put an image in these Ivs, I was able to do this with the following code:…
-
-1
votes1
answer1120
viewsHow to transform a div and input text?
I wonder how I could turn my dynamic form’s Divs into input text value when it is clicked on Submit . My form <div class="container"> <h1 class="restaurant-title">Peixaria</h1>…
-
-1
votes1
answer46
viewsProblem with div’s that don’t "fit"
Sorry for the buggy page, I’m going to put some images below of how she really is: This image shows where I put the two Ivs, one next to the other, have tried several things, use col-Sm, until…
-
-1
votes1
answer83
viewsGet the size of a div in pixels
I want to make a grid of images where they fit. I had already done the Divs grid and just wanted to put the background of an image, but when I try the images are wrong. How do I get the pixel value…
-
-1
votes1
answer22
viewsHow do I leave an active <div> only for one screen size? For example: only in 750px does it become active (I’m a beginner)
<div id="750px"> <a href="https://www.instagram.com/p/CKBoR2ZDlwL/" target="_blank" rel="external"><img…
-
-1
votes1
answer50
viewsHow to play an input values in a div?
<link href="https://fonts.googleapis.com/css?family=Fugaz+One" rel="stylesheet"> <link rel="stylesheet"…
-
-1
votes1
answer263
viewsput a div inside a function in php
I 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
votes2
answers2531
viewsbutton to show/hide div
I have a div I’d like to hide and display through a button. However when I click on this button, instead of hiding/displaying the div, the form is sent. See the code snippet below: <form…
-
-1
votes1
answer76
viewsWhen trying to link a NAV, the CSS style gets messy
Good 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
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
votes1
answer2368
viewsHow to change input value within div with Avascript
I’ve even managed to change an input inside the div, but when I try to change the input of other div I can’t, I’ve tried several things and nothing. div1 <div class="container"> <div…
-
-1
votes1
answer66
viewsDynamic checkbox with Ajax and PHP
I am generating a product div with php, in this list I would like to add a check-box with boolean value 0-1 for active and disabling. When the manager clicks disabled the product does not appear to…
-
-1
votes1
answer234
viewsResize DIV according to menu size
I put html + css code inside a Jsfiddle to help visualize the problem. What I need to do is that the div named "kk" resizes according to the menu size, for example: if the menu is minimized it…
-
-1
votes1
answer60
viewsBreaking text using div
I need the text to break automatically and continue to show below the number. .circulo{ border: 1px solid #000; border-radius:25px; width:25px; height:25px; text-align:center; vertical-align:…
-
-1
votes1
answer41
viewsImage based on the content of a div
I need to display an image based on the content of a div. The tag already exists and I need to discard the one that was loaded and replace it with the new tag with the image in question. Let me give…
-
-1
votes2
answers52
viewsHide/Display a div
Good night, you guys. My problem is to hide/show a div. I’m still studying and training and could not solve this problem. I have the following html code: <div class="celulares"> <table>…
-
-1
votes1
answer29
viewsgrid fill div
I have a page where there is a part with questions, I needed to put the textfield filling the frame and the button in the bottom right corner of the page, but for that I would need to fill the grid…
-
-1
votes1
answer37
viewsAlignment of elements in the header
I’m a programmer and I haven’t manipulated for a long time HTML/CSS, now I need to create a portal for a small application and I’m having difficulty in some issues related to the alignment of…
-
-2
votes2
answers998
viewsUse HTML div and store it as a variable
I have a playful web page, on which there are 2 Ivs, and on a PHP page, I would like to add a word to them, the array rand I already know how to do, the problem is time to take the HTML Divs and…
-
-2
votes1
answer59
viewsShows and hides content in Div in list form
I’m trying to change this code so you can hide and show the content in list form. At the moment the code shows the content in videos through your id. <div id="videoGallery"> <ul>…
-
-2
votes1
answer49
viewsProblems with html bootstrap div
So guys I’m having a problem with Divs on my site I want to create an aside that takes from header to footer but, I’m not getting it. follows the image: .|.................................| V aside…
-
-2
votes1
answer1396
viewsImage exiting outside the div at the top and footer
How do I create a border div and position an image with a discount value above that div coming out of it and just below it centralized a button in the middle of the div as the attached image;…
-
-2
votes2
answers47
viewsHow to pick up a word that contains a specific character?
I have this string in a div: "Sofá 3 Lugares Tiffany em Veludo 2,12m Aquila" I want to take the text of the words that contain "," and return them. Ex.: 2.12m…
-
-2
votes2
answers78
viewsLINE-HEIGHT is not working on my table
* { font-family: arial; } body { padding: 0; margin: 0; } .escopo { width: 100%; height: 200px; background-color: yellow; } .margem_escopo { width: 1000px; height: 200px; margin: auto; } .tabela {…
-
-2
votes1
answer46
viewsHow to put a DIV in place of a specific word with script?
I want you where you are text take for example <div> novo texto </div>, I was wondering if you could do this. In short, I want everywhere on the site to have the floor text change to a…
-
-2
votes3
answers75
views -
-2
votes2
answers101
viewsHOW DO I SELECT A DIV WITH PHP?
I’m stuck in an exercise in the following exercise. Create a loop with do...while which displays within an element <div> the current index, but when the repeat index is 2, 6 and 10, change the…
-
-2
votes2
answers38
viewsHow to align 4 Divs with image
How do I align my texts and images side by side as this way below: I researched and tested several ways to align and could not. Currently it is like this: The code I used to do this is this: <div…
-
-2
votes0
answers6
viewsHow to know if the click I leave the father div
Following my problem and : I have an array used foreach to percorelo '> Amount result : Coloured Preta= > button Verde= > button Cor jeans= > button Rosê= > button Marsala= > button…
-
-3
votes1
answer307
viewsWhen you click on a link, close all open Ivs and open a specific one?
I’m developing a site that will be just a page and will not have scrolling, I need when I click a < a> close the open div and open the one I passed in href="" from < a>.
-
-3
votes1
answer57
viewsbody does not get the full page size
I’m making a site (ETEC work), my teacher asked to use only HTML and CSS, I’m beginner, everything was perfect until I decided to add more stuff on the site, it creates normal scrollbar but gets all…
-
-3
votes1
answer37
viewsHow to make Tag not suffer a tag attribute whose tag is housed?
How do I get one tag from another? Ex.: <div> <img src="..."> <a href="...">...</a> <a href="...">...</a> <a href="...">...</a> </div> In case I…
-
-3
votes1
answer58
viewsSuperimpose one <div> to the other keeping them aligned to a third <div>
Hello I have a problem to align overlay two images. There are two images A and B, and B should be on top of A and both aligned at the bottom of another div that is in the center of the page. I’ll…
-
-3
votes1
answer31
viewsHow to overwrite Divs without position Absolute and relative? CSS
Good afternoon, folks, how are you? I’m looking for a way to overlay div’s position without Absolute and relative, would like? if I use any of these, it ends up leaking into my header (which is with…
-
-4
votes1
answer163
viewsHow to put html code in question
I have a block of html code and I need it here in the body of the question
-
-4
votes1
answer34
viewsclick on link and open content in div as _Blank
I need to link and have the contents of the called file displayed within a div according to the $_GET[] reported. This command I have already understood how it should be done. However, I need this…
-
-7
votes2
answers1140
viewsHow to change the color of a div every 40 seconds?
I would like a div was alternating colors, two colors preferably. If you want you can put more than one example. But my preference is that the color changes every 40 seconds.