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
-
2
votes1
answer179
viewsHow to make the position of a moving div be saved automatically?
I developed a widget for my project and now I need that, when moving it, your position is saved. Example: Initial widget position 80px x 120px, after moving it, initial widget position 210px x…
-
2
votes2
answers998
viewsScript open only after given time
I have a script, but it opens as soon as it is loaded. I’d like to have him run after 10 seconds and open along with my div, she’s like this: <div id="mame"> CONTEUDO </div>…
-
2
votes2
answers1059
viewsPosition of DIV relative to another with dynamic content
I have two divs on my page, a class="rodape" and another class="content". The first is the footer of the page, and adjusts its position relative to the bottom of the fixed contents of the page…
-
2
votes1
answer2530
viewsShow DIV according to PHP condition
I have a div that brings a select from the bank, but it can only be shown if it meets a condition. It comes like this: <div id="conteudo" style="display: none;"> If she meets this condition:…
-
2
votes3
answers9570
viewsUpdate DIV without refreshing the JQUERY page
Good afternoon Guys, I have an ajax that sends a post some information, in PHP I saved this information in Ssion, I would like to update the DIV where I have a foreach (PHP) to update so that I am…
-
2
votes2
answers6493
viewsAlign DIVS in CENTER
I’m working with bootstrap + codeigniter and I can’t align the products in the center of a div. I would like the blue items in the center to be aligned by the center. HTML/PHP <div…
-
2
votes1
answer64
viewsAutosize divs with div overflow Hide between them
I have 3 inline-flex Ivs, one on the other side, I need the left and right to be the content size (autosize) and the center to be the size that remains, but with overflow Id, I searched in…
-
2
votes1
answer1977
viewsHow to put Scroll in table inside div with width 100%?
The example shows a div with scroll horizontally, but would like the table along with the scroll div to adjust 100% to the screen size. .div { border: solid; display: inline-block; width: 300px;…
-
2
votes2
answers44
viewsJavascript command does not work inside Buttom
Good morning! I have a problem, and I’m having trouble solving it. I need a buttom to appear or not according to the PHP condition. To make the buttom appear I’m succeeding, the point is that inside…
-
2
votes1
answer107
viewsWhat feature do I find in HTML, as an option to PHP Include?
What features do I find inside an HTML page, to make segments independent of a page (Head, Body, footer, etc.) just like it happens using include? So that only one page would suffice, facing 30…
divasked 6 years, 10 months ago andre borges 21 -
2
votes2
answers402
viewsConfigure list-group with scrollspy bootstrap
Good night ! I’m struggling with one of the layouts of my project in which I have a div divided into 3 parts, where the top right will contain cards that selected will bring the data into a list at…
-
2
votes0
answers1173
viewsHow to Create frame with text in the middle of the page?
How do I create boards equal to these , also with a little transparency ? I was kind of doing this basic job.…
-
2
votes1
answer475
viewsDiv breaking when label content is too big
To div one-page HTML this breaking when the text size of one of the labels I have inside it is very large, I am using the following code: <div class="divRelato" style="background-color: #eee">…
-
2
votes3
answers290
viewsChange scrollbar positioning in a div
By default, in a horizontal menu the content is read from left to right, as in this image: However, I would like when the content is loaded, the scroll bar is, say, automatically moved to the right,…
-
2
votes1
answer569
viewsJavascript hides div when showing another div
Can anyone tell me, how do I hide a div when show another? I have a hidden div that only shows on receiving a condition. I wish that when this hidden div received the condition and appeared, hide…
-
2
votes1
answer614
viewsHow do I return the total sum of the repeated words within all div?
To illustrate the degree of difficulty, I place 3 div and within them identical words, purposeful to add their duplication. <div> <div> <div> Diego Ademir Diego Maicon Diego Maicon…
-
2
votes1
answer766
viewsDisplay some DIV with input value
Good morning Dear friends, I have a question in the study. I need to be displayed only a few div of the form, I have tried some methods, unsuccessfully. I save OK, I choose 1 of the 3 options in the…
-
2
votes2
answers680
viewsHow to make a button appear/disappear only from one of the loops created by ng-repeat? (Programming in Angularjs)
My angular code has an ng-repeat as follows: Angularjs: angular.module('meumodulo', []) .controller('mercadoria', function($rootScope, $http) { var ctrl = this; $rootScope.listademercadoria = [];…
-
2
votes2
answers308
viewsDiv alignment
I own a table that is built dynamically with the information of a film director. And I need to change the structure to a div, mainly for the issue of responsibility, today by reducing the size of…
-
2
votes1
answer131
viewsSmooth scrolling in div content
I have a script that scrolls smoothly when clicking on the anchor link. The problem is that it scrolls the entire page. I need him to scroll only the contents inside a div specific and the rest of…
-
2
votes2
answers14038
views -
2
votes2
answers56
viewsMake a DIV element stand as a footer
This is an example of what I’m trying to adjust: * { margin: 0; padding: 0; } html,body { height: 100%; } #topo { background: limegreen; position: static; left: 60px; top: 35px; width: 100%;…
-
2
votes1
answer100
viewsI cannot lay out side by side the css elements on the screen using col-
I want the two Divs with the gradient to line up Follows HTML and CSS: * { box-sizing: border-box; } /* Sistema de colunas para celulares: */ [class*="col-"] { width: 100%; } /* Sistema de colunas…
-
1
votes1
answer1124
viewsLink to a div on another page does not work
I have this code: <div id="text"><p>A Intertráfego está disponível a ser alcançada a qualquer momento. Saiba <a href="pedir_cotacao.html#map">onde estamos</a> e <a…
-
1
votes1
answer1182
viewsShow a div for each dropdown option
I have to create a dropdown that will show a div with a button for each dropdown option. For now I have the Divs (I have to do more) and the dropdown, but I don’t have the JS to show and hide. There…
-
1
votes1
answer2838
viewsAutomatically insert Youtube video into a div
On the site I’m developing, there’s an element div, where it needs to automatically capture Youtube videos from a channel, that is, if the user/channel uploads a video, it will automatically show…
-
1
votes1
answer293
viewsHow to capture the size of a div where the value has not been set
I have a div, which contains a text inside, when I pass the mouse over it, another div, which is a small bar of height:3px, no longer be display:none and it gets display:block, So far quiet,…
-
1
votes1
answer83
viewsscroll rotates and stops at the div below
I’m developing a website and I’m having a problem. I want to create the website presented some products, and I want to scroll the scroll, the site runs to a certain size stopping in the position I…
-
1
votes1
answer421
viewsCalling external file by Div
In the script below it is possible to call an external file through this <div> <div id="script" class="#"></div> Watch this excerpt from the script: https://'+id+'?= how do I make…
-
1
votes4
answers12028
views -
1
votes1
answer417
viewsHow to dynamically position a div with content within a dynamically created div?
On my website, I create a div dynamically, after the second paragraph (forum). I’d like to position a banner already loaded inside that div. tried several ways, to give a apendchild, but it won’t.…
-
1
votes1
answer191
viewsDiv stop on top of another div
I’m in trouble, I’d like a div with "position: fixed;" when you get to the footer one div on top of the other and not one on the other. For example, the header of this site:…
-
1
votes1
answer304
viewsHow to make the keyframe stop at 100%/stay static after animation?
I have the following keyframe: @keyframes bolha 0% {width: 0px; height: 0px;} 50% {width: 600px; height: 600px;} 100% {width: 400px; height: 400px;} } I call him that way: -webkit-animation: bolha…
-
1
votes1
answer865
viewsMethod copy text in javascript
<td> <div id="Ei" onclick="getValue()">Click me!</div> </td> <td> <script type="text/javascript"> ShowLMCButton(document.getElementById("Ei")); </script>…
-
1
votes1
answer75
viewsUnnecessary space in the sales module div
I have a question for you. My problem is that the space in the display is too big if I hide the same options in the shopping cart! My code hides the image of the product but the white space (empty)…
-
1
votes1
answer1382
viewsAdd a tag to another tag using Javascript
I have a jQuery that I use on a website that I’m doing that applies the zoom effect on an image. Only when I hover the mouse over the image and it zooms in, jQuery creates another IMG tag with the…
-
1
votes2
answers334
viewsCSS heritage in Divs
I’m having trouble editing some legacy Ivs. Let’s take a look at the example: This is the current code: <div id="conteudo"> <div class="titulo">xxx</div> <div…
-
1
votes3
answers754
viewsHow to update a DIV with PHP
Hello, I read some tutorials on how to update every few seconds(using javascript, Jquery, etc) and wanted to know if there is a way to update a DIV with PHP itself, when pressing a button for…
-
1
votes0
answers1031
viewsCreate a Dynamic Matrix using Angularjs
I need to create a Dynamic Matrix where the user inserts its size. This Matrix needs to be using Div and not Table of HTML, and the content to be shown inside the Matrix is in images and needs to be…
-
1
votes1
answer440
viewsSlide control (in div) with jquery - next and Prev function?
Friends, I need to assemble this slide where I can have a control, that is, next and previous button. In the example the structure is ready, but I don’t know how to implement the previous and next…
-
1
votes1
answer734
viewsdiv does not respect the size set in css
I’m trying to create a messaging system, but the formatting of the div is not respecting the size. I’d like you to help me, so I know where I’m going wrong: #limit { max-width: 500px; }…
-
1
votes2
answers1576
viewsHow to Create Conditional on a DIV p/ Change Content
I’m trying to make a conditional to display content within a div. My website is with the CSS adjustable by browser type, but this only changes the format (size) of display! Precise change the…
-
1
votes1
answer2867
viewsHow to capture the value of a paragraph within a div?
I ask your help to capture the value of a paragraph h4 that is inside a div specific, and place in a form text field. It is to automate a group name response system/singer of an online radio. This…
-
1
votes1
answer67
viewsWhy are the Ivs doubling?
I have a one-page code that’s happening something I don’t know about: I have two 100% wide containers, and each has other containers inside. However, after adding a new container with 100% width,…
-
1
votes3
answers618
viewsHow to make certain words within an editable div stay of one color?
I have a DIV which is editable by the user, only that I wanted when ee write Brasil it stays only this word green tabem as EUA turns red, but only certain words. Code of the IVD: <div id="texto"…
-
1
votes1
answer156
viewsI got a div that’s not working
Has 2 Div with the parameter Container the problem is that the second is working and applying normally the CSS, but the first one doesn’t work. I’ve already moved the lock but it didn’t help.…
-
1
votes1
answer128
viewsCreate Divs according to database entries
Good morning, I am developing a website and would like to create a new div for each entry the database presented in php. I need to make a page with the same principle of a blog, the last content…
-
1
votes1
answer246
viewsAdd Players in script code
I have the following code: var buttons = $('#videoGallery .vid'); var liHeight = $('#videoGallery li').height(); buttons.click(function(){ var videoID = $(this).attr('data-videoID'); var videos =…
-
1
votes0
answers156
viewsMaintain image size for CSS printing
Personal as I do to generate an image that will stay background in a div with a text overlaying it and the time I print it keep its size. Type I have an image generated in Photoshop with the…
-
1
votes1
answer3664
views