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
votes2
answers956
viewsHide a div containing photo and show another div in the same place
I am using jquery / php to access the user’s camera and take a photo for a registration. And on the page change user data I need that when uploaded show the photo recorded in the bank in a div…
-
0
votes1
answer27
viewsDiv is not showing up
I’m trying to make a div appear right after the other, but when I put the function, only the first one disappears and the second one doesn’t appear. <script> function apareceDiv1(){…
-
0
votes1
answer68
viewsDynamic Div - Tracking Page Scroll Bar
I have a div which is in the second column of the page and I wanted it to become "dynamic", I mean, it followed the scrolling of the page, but even with researches, I could not get anything that…
-
0
votes1
answer69
viewsWhy can’t I create the <div> in the right place?
@media (max-width: 1200px) { .navbar-light .navbar-toggler { font-size: 30px; display: inline !important; border: none; } #menu-exp { display: none; } .navbar-toggler { text-align: center; position:…
-
0
votes1
answer41
viewsHow can I hide or show a div from one page to the other?
I have a file where people write in the camps: <div class="banner-bot" > <div class="container"> <h2>Registar</h2> <p>Preenche os dados para criar a tua conta. Quando…
-
0
votes1
answer189
viewsHow to copy div from iframe to parent? (replicate) can be using ajax, jquery, javascript
I have an index.php that does a post in.php content, and takes the result and writes to the div #content inside index.php. Post: <script type="text/javascript"> $(this).on('load',function(){…
-
0
votes1
answer65
viewsWhich Correct Way to Apply Lightbox to Each Descriptive Link and Clear
I’m on a little something. I need your help for a change. I’m practicing on a personal project, the effect Light Box and if possible would like to hear the dear(a)s colleague. Whether pointing out…
-
0
votes3
answers56
viewsProblem with div positioning - CSS
I’m developing a hotsite and I’m having problems with css. How I always leave the button next to the text? .divFixa{ font-family: 'Open Sans regular', sans-serif; font-style: italic; font-size:…
-
0
votes1
answer447
viewsChange display at the push of a button
I have a page that has two tables, and I have two buttons "option1" and "option2", one for each table. I want to press the button "option1", keep the first table visivele leave invisible the second…
-
0
votes3
answers1470
viewsHide DIV when loading the tab according to select
Today I use this function to disappear the div, works perfectly, But I need the field already selected /option value="boletos" Selected/Boletos/option/ but the function is only executed when it…
-
0
votes1
answer216
viewsGraphic Passing php data to js
Hello, I have a php file with a div calling the js file, but I need the js file to read the php data in arquvio php: <div id="chart_div" style="width: 100%; height: 500px;"></div> in the…
-
0
votes1
answer45
viewssetar scrol location
I have a div with overflow: auto; I press to leave the scrol of this div at the lowest point, to show only the newest information: div{ width: 150px; height:80px; border: 1px solid; padding:5px;…
-
0
votes0
answers57
viewsCalculate a route by Google Map and multiply the distance by a value in real
A colleague posted this code and I took advantage of it on my site more I would like to do a multiplication with the distance between the two points, for example the distance gave 1000 km I want to…
-
0
votes1
answer220
viewsBootstrap - Update only one div (Menu)
I am starting a project with bootstrap and would like to update only the div class=content when selecting some menu option. How do I do? Follows: ├── html files │ └── index.html Src/ ├── pages/ │…
-
0
votes0
answers246
viewsDropdown menu does not overwrite and background div
The problem is this, I have a header with a background, I have a menu bar in this header, this menu bar has an item with dropdown, but when I call the dropdown it appears below but is cut when the…
-
0
votes2
answers114
viewsHTML redirection
Hello I am creating a calendar for a website of my anime and would like to redirect each <div> to a certain place. In case I made a page like this: I would like each one to take to a specific…
-
0
votes1
answer244
viewsHow to format a Grid within Div?
Gentlemen, I am trying to insert a grid inside my Divs, but it is in conflict with the top part, as image attached, follows an excerpt of my code where the problem occurs. I have the div row1 which…
-
0
votes1
answer149
viewsLoad specific content from a div that is in another jQuery html file
Save list! I need a help here, I have a file ". html" where I assemble a list that is configured like this: <!-- ... --> <header> function Open(id) { console.log(id); var x =…
-
0
votes1
answer476
viewsTitle getting out of the div
I have a div parent containing two Divs son and one of these div son contains two other Divs son. The title of one of these is getting out of it. I modified the sizes of the same due to the…
-
0
votes1
answer177
viewsSection above the video, using toggle
Guys, I want to leave a video on the home page of the site that I’m creating with HMTL AND CSS, but when I click on some option from the sidebar menu, Serction will transition over my video, in case…
-
0
votes2
answers112
viewsAdjust Section [Position: Absolute]
People, I’m doing a website as a college project, but I’m picking up a little bit to solve a problem with the positions of the elements. I have 3 sections, one adjusted to be Header, one adjusted to…
-
0
votes1
answer61
viewsDIV lose alignment if it is with a number of different lines
I’m trying to line up some divs but I realized that when the div that’s on the other side is not with the same line number on <p> it simply loses alignment, I am developing in Laravel using…
-
0
votes1
answer63
viewsI need to make a shape with css and I can’t. And rotation doesn’t work on IE11
Talk guys, is it okay with you? (I hope and wish you) I’m starting a new personal project, and I’m getting my ass kicked with two questions: 1 - The set of menus is rotated, while the central logo…
-
0
votes1
answer115
viewsJavascript to display Divs randomly (With text or images)
I am developing a page and need to display some text and images randomly on a certain part of the page. I found it here on the forum (Display text at random) a code that almost does what I need.…
-
0
votes1
answer919
viewsHow to make a DIV occupy the right space?
Good evening, I’m mounting the layout of a learning project of mine, I need to make the div occupy the space equal to blue image below My code is this:: My HTML and CSS are below: @import…
-
0
votes1
answer49
viewsCapture action from a form on a button
Good Afternoon I made a normal filter, but in order to be able to format the filter in a more effective way, I want to take the Div Button, but when I do this the button stops working because it is…
-
0
votes1
answer239
viewsDiv exceeding size inside another div
I am working with Bootstrap and I am trying to make a 'table' with two columns. Inside the right column I want to place another 'table' with 4 cells, each with 100x100px images. All right so far,…
-
0
votes0
answers125
viewsphp call html with class
.up{ color: #80006F; } .up:hover{ color: #CC00B1; } input{ margin-top:20px ; margin-left:0px ; margin-right:5px ; margin-bottom:10px ; } .modal-header{ background: ; } @font-face { font-family:…
-
0
votes2
answers164
viewsDecrease DIV when another DIV expands
I have a div that has Collapse and a div that should only take up the space of the rest of the div major. How do I make the div that occupies the rest of the larger div decrease in height when the…
-
0
votes1
answer49
viewsInput error inside Div
I have a table and I’m making a filter worked, but when I put the input inside the div to align can not filter, even takes 1 letter but does not filter more. <script type="text/javascript">…
-
0
votes2
answers1548
viewsRemove standard container space
I’m performing a style modification within my #div1, but she is inside a container, so the stylization doesn’t take the whole field, it’s as if the div did not occupy the whole field, there are left…
-
0
votes1
answer18
views -
0
votes0
answers53
viewsDiv contenteditable + problems with Jquery and Caret-cursor
Well, I’m having trouble with a "contenteditable" Div, which briefly uses ". replace() and regex" with a bit of jquery to be able to work with dynamic content, the problem in general is that the…
-
0
votes3
answers1262
viewsHide a div and show another
Good afternoon! I am trying to solve a little problem (I believe to be simple). I made a script to show/hide the Ivs, but I can’t make it so that when I press button 2, it hides the div from button…
-
0
votes1
answer763
viewsonClick={} with div return with API content
talk boys. I’m having a beginner problem... I’m new to reactjs and wanted to know how to do it: as soon as I click the button it returns me the data of the api inside a DIV ex: (article, Section and…
-
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
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
answer351
viewsHow do you stop the elements of a div from overtaking their father?
Hello, I’d like my side Ivs not to overtake the father. The amount of Ivs will depend on how much information you have in the bank (if you have 10 supermarkets, for example, 10 Ivs will appear) div…
-
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
answer87
viewsAccess and change ID content by url?
I’m doing some tests with API of BLOGGER and in the tests I performed I managed to reach a certain point that is to add content to articles via API. Page where I’m doing my tests:…
-
0
votes2
answers373
viewsControl div from a checked checkbox
I have a checkbox list (*ngFor): <div *ngFor="let item of listaProcesso"> <input type="checkbox" ng-model="check" (ngModelChange)="expression && expression[item.name]= $event ? true…
-
0
votes1
answer201
viewsView sessionStorage data in a div
I am doing an activity that consists of recording data obtained from a form in the sessionStorage with the Register button, and with the Display button, show the recorded data. I cannot show this…
-
0
votes2
answers114
viewsWidth defined in css appears as Undefined for Javascript
The problem is this: 1-I created a div and defined its style by its class, in css. Including width. 2- In javascript I try to search to change the value of this width, via "myDiv.style.width", but…
-
0
votes1
answer34
viewsUse of pseudo-elements ::after in a DIV simulating an INPUT with LABEL - Pseudo-element overwrites the cursor. How to do not overwrite the cursor?
I created an editable DIV by simulating an INPUT with a LABEL using the pseudo-element ::after and the pseudo-class :Empty. LABEL (which is actually a pseudo-element ::after with the content equal…
-
0
votes3
answers45
viewsNot painting my entire <div>
When I put one background in my <div>. HTML code: <footer> <div class="footer-top"> <div class="fcontainer"> <div class="frow"> <div class="col-md-3 col-sm-6…
-
0
votes1
answer53
viewsDiv does not respect imposed width
I’m using css to create a new look for a birthday report however, when I create the structure I can’t get the internal Ivs to take up all the space on the line, they’re not occupying 50% as defined…
-
0
votes1
answer55
viewsAlignment of elements in html and css
good afternoon people, sorry to bother you, but I need help to do an alignment I’m not getting. I’m formatting an element that looks like a table, has the days of the week to the left and the times…
-
0
votes1
answer59
viewsLabel html breaks text - fit with Bootstrap
When I open my desktop page it looks like this: When on cell phone, it looks like this: My code is like this: <div class="form-group"> <label for="qtdpessoas" class="col-sm-2…
-
0
votes0
answers134
viewsLoad external website inside a <div>
I saw some examples of loading content into a div, to specific project pages. But I’m finding it difficult with Jquery. For page loading it is common to use the function load() jQuery, which works…
-
0
votes2
answers142
viewsJavascript tabulated result inside a DIV
I made a simple code for a table using "for" only when customizing for the result of the table to be printed in the DIV I can’t. It does not load all values. Follow the code. <!DOCTYPE html>…