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
-
1
votes1
answer111
viewsElement overwriting another HTML/CSS
Hello! My problem is this: I made this grid followed by a button. On the desktop it appears correctly, but in mobile the button is superimposed on the grid... Does anyone have any idea what it might…
-
1
votes2
answers25
viewsDiv losing size fixed when have another div with 100% width on its side
I have two horizontally linear div using display:flex. When applying a width of 250px on one and 100% on the other 250px loses the size of 250px always getting a few pixels less. If I switch to…
-
0
votes2
answers286
viewsToggle in a div next to (or below)
I need to manipulate a div from the click on another div. Basically, one is on top of the other, I want to click the top one and so the bottom one runs the event .toggled(). But one cannot be inside…
-
0
votes0
answers797
viewsDecrease the height of a div
Guys I want to make a change at the time of div on my site, however I don’t know exactly where to edit, I’m new with Wordpress and I don’t understand much of programming and I’m kind of lost.. Is…
-
0
votes3
answers2658
viewsDiv responsive with image and other elements inside
I’m creating a website mobile with design responsive. Within a div have a slideshow which shows 300x300 images, I need to make this slideshow responsive without touching the attributes width and…
-
0
votes1
answer2696
viewsHow to get the ID of an element inside a div?
I have a div and a few images, each image represents an item in a array global. When I drag this image to the div an edit form is enabled, otherwise a form is enabled to create new rule and generate…
-
0
votes1
answer49
viewsASP.NET WEB FORMS Remove a <p> and its contents from a DIV
I have several DIVS that contain a < p >  ;< /p >. How do I remove this paragraph with space in Codebehind? (Without using JS or Jquery)
-
0
votes1
answer435
viewsHow do I put a menu below the logo?
I’m not getting my menu to appear on index. How do I put the menu under the logo? This is the code: <html> <head> </head> <body> <img src="img/belo.jpg" alt="" width="250"…
-
0
votes0
answers970
views -
0
votes2
answers197
viewsOpen div by clicking on a date
How do I open one div click on one of the dates? When click on another div open close and open the clicked with a different content? #agenda { width: 1000px; height: 500px; background-color: white;…
-
0
votes3
answers1629
viewsCreate a div that occupies 100% of the screen width?
I created a <div> but she’s not occupying 100% of the top I want to see: http://i.imgur.com/Wq6qsho.png she’s at a spacing around :( this is the code I used: css: .top-bar { position:…
-
0
votes1
answer285
viewsShow one DIV and hide another if the parameter in the url is a default parameter
I don’t know if the question was formulated correctly but anyway... My problem is this: The user will enter such a code and will click search. This request will go through a PHP that will check if…
-
0
votes1
answer118
viewsOpen div according to combo selection
Need to include lines in a table with textbox fields according to combo selection. x is that if the user selects in the Employees = 2 combo, it must display the textbox Name 1 and Name 2, if you…
-
0
votes1
answer78
viewsOpen different elements js
I would like to know how I can create a function in JS/Jquey which opens a DIV which nay this visible. However, I will have more than one DIV, and I need the JS to identify these DIV’s (I hope I was…
-
0
votes0
answers69
viewsDiv gets cropped when changes window size + css
Guys I don’t know how to look for this on the web, until formulate the question is difficult, what happens is that I have a div on the screen with background=red for example, the screen being…
-
0
votes1
answer411
viewsShows and hides content in list form. with Div and Javascript
I am trying to edit this code that is almost finished, its function is to show and hide a certain content that is inside a div. But I can’t make it work. You can get access to it running here:…
-
0
votes1
answer1956
viewsHow do you copy the value of one DIV to another DIV with Javascript?
My problem is this: I have an html page, and on this page, there are 2 Divs. in the second div, I have a javascript that stores a value in a certain variable. What I want is to display the value of…
-
0
votes1
answer76
viewsget the id of a dynamically generated tag a
Good morning. Can anyone tell me how to use jquery to capture some data from a tag within a dynamically generated table? In fact everything within the div "showPesqReserva" is generated dynamically.…
-
0
votes0
answers397
viewsHow to block the scroll bar of a specific div?
I am creating a new site, and in it has a DIV that exceeds the Width of the body, which ends up activating the X-axis scrollbar. I wanted to know how to do so regardless of the size of this…
-
0
votes1
answer143
viewsHow to Create Div that appears in the page scroll
Some websites have a div which appears on the side of the page as it comes close to the end of the page. I don’t know his name, but I have an example: on the pages of the site’s posts…
-
0
votes2
answers431
viewsDiv with other Divs inside
I just want to make one div, as if it were a windows window, with title, body and a button bar at the end. But I don’t know why, depending on the size of the window, it "leaks" or is left over…
-
0
votes1
answer36
viewsI need to create a slider shortcut that allows the inclusion of additional information
Hello! I developed the site http://www.ibrapper.org.br/ using a Wordpress theme. And the client requested to put a shortcut to receiving donations as the site https://www.hcancerbarretos.com.br/ I…
-
0
votes1
answer81
viewsWhat is the best way to assemble this layout?
Good guys I’m mounting a simple layout for a sisteminha in php. My question is, which is better, table or div? I mounted it in table to display what I need. Follows him: body{margin: 0; height:…
-
0
votes0
answers73
viewsAlign one div inside another vertically
My goal is to get this vertical alignment: I need to align vertically and horizontally the contents of div's busca and buscaImovel consecutively. Horizontal alignment works but vertical alignment…
-
0
votes1
answer547
viewsCreate a div that contains other online Ivs
I need help creating a div that can include other horizontal line Ivs. The goal is to create a space at the top of the site header. Can someone help me? <div id="header"> <div…
-
0
votes2
answers14161
viewsVideo run in a div as background
I want to make a video run inside a div. I saw it on Papercut and I’d like to do the same.
-
0
votes1
answer1882
viewsInner shadow of the parent element on the child
I need to make the inner shadow of the parent element over the child element. I have one div with overflow: scroll and a table inside which may be larger than this div. I’m making an inner shadow…
-
0
votes2
answers361
views -
0
votes0
answers53
viewsHow to automatically resize div’s with image and description
I have a project in which I have products with image, description and price, I want to make the div’s resizable automatically according to the description and image. I also want a static value that…
-
0
votes1
answer142
viewsFixed div when scrolling in different resolutions
I have the following scenario. A banner at the top that picks up the entire screen viewport, regardless of the resolution Below it a menu that when scrolling down it stays at the top following the…
-
0
votes1
answer1501
viewsHow to get a picture of the user’s computer?
I’m starting to build a form in HTML (bootstrap), and I want to add a div with an "add image" button that is possible to fetch the image inside the computer, and as soon as the photo is added, that…
-
0
votes0
answers41
viewsTaking Image from an external website and putting in a <div>
Good afternoon, I’m still new in this business, but is there any way to get an image from an external site and put it on my page? i searched some functions like . load() ajax or php with…
-
0
votes1
answer647
viewsLoad HTML into Div via Ajax
I would like to take the answer from ajax, and press div... If I load the div, passing the url works 100% var detalhamentoDiv = $("#detalhamentoDiv");…
-
0
votes1
answer101
viewsTag layout on a div, padding and magin
Well, my teacher asked me to "clone" the Facebook site as an exercise to apply what was learned with html and css during class. However, I cannot leave the two "password" and "email" boxes on top of…
-
0
votes1
answer28
viewsAngular 4 problem when setting data in the text editor
I have a text editor and word type and in that I need to add a text that comes from a modal to that editor, with the two way data Binding I can set the variable with the data that are coming from…
-
0
votes0
answers59
viewsHow to kind of put div back and content up
Like, someone can kind of explain to me how this works? like there’s a back where the image is, and on top is the content of the site itself... Video of how it is:…
-
0
votes0
answers60
viewsAfter loading reply in div without refresh, update div containing PHP/MYSQL search
The page already loads the content in a div without refresh, the problem is the following: It carries the answer inside a div rem refresh, giving the answer, I need that if the product is added,…
-
0
votes1
answer2919
viewsHow do I prevent one element from overlapping another?
All right, here’s the deal. I have a div, which in my case is the body of the page, within this div I have two edges, the right and the left, and inside the div I also have a flexbox with some…
-
0
votes3
answers60
viewsdefine div size according to svg in js
Good afternoon. Sorry, I was wondering if you could use the onresize javascript event to resize a div/container. I’m using that code: var resizeTimer; window.onresize = function (event) {…
-
0
votes0
answers151
viewsscroll linked to a div in html with javascript
the function I have is to show me more articles every time I arrive at the end of the page ( infinite scroll paging ) works perfectly but I have a doubt that I am not able to solve, I want to load…
-
0
votes0
answers75
viewsHeight with min and max in percentage x auto
I have a div, and your Heightis at 90%, but if you decrease the height of the browser the content goes out of the div, how can I keep you from div? I thought I’d use height-min:auto and…
-
0
votes0
answers30
viewsDropdownlist on the Edit screen
Good afternoon Guys, I’m having trouble with my application, when I will edit a record that on the screen has a Dropdownlist it appears --Selecione--, where should appear what was saved in the bank.…
-
0
votes1
answer27
viewsLike a Block display when scrolling the page
<html> <title>Menu div</title> <head> </head> <body> <style> * { padding:0; margin:0; } .menu{ width:100%; margin: 0px auto; padding: 8px;…
-
0
votes1
answer137
viewsHow to define Height of DIV Filho, through the depth of the Scroll of DIV Pai
I’m having a little trouble applying the depth size of the scroll dynamic vertical of the first div, in the second div superimposed. Code: // Vamos criar a segunda Div, no qual ficará sobreposta a…
-
0
votes1
answer938
viewsOverwrite one image over the other with href="#image"
Well, better example than that than what I want to do I think there isn’t ? I want to use the image tab as a link, when the person clicks on the "Loguin" tab will appear the other image on top ,…
-
0
votes3
answers376
viewsmultiply div s repeat loop co div s
I have a list of channel names that are broadcasting a certain game on twitch.tv (api), so I can take all the channels and list the same. The question is how to put them in a div To stay in blocks…
-
0
votes2
answers89
viewsCSS and HTML display
I’m having a problem leaving my menu online someone could inform me what I’m doing wrong, thank you !!! @charset "utf-8"; /* CSS Document */ #topo { background:url(../imagens/topo.png);…
-
0
votes2
answers11985
viewsButton in the center of the screen
I found here the solution, in case someone needs position:absolute; top: 500px; left: 200px; Hello guys I started a new test here for an application, and I’m having trouble putting the button in the…
-
0
votes3
answers655
viewsLateral alignment of Divs
I have 2 Divs in my code, the first div is an image, the second div is a form, I want to put side by side the two, and when seen in the mobile it breaks, stay one div on top and the other on bottom,…
-
0
votes2
answers1357
viewsJava Script does not change a div with display from "None" to "block"
I would like some help on element style.display in java script. JS is not changing a div declared in None jsp to block. I have a jsp page that has a div of the hidden type: <input type="radio"…