Questions tagged as 'div'

1
answer

How to maintain the proportions of an image inside a fixed size div in CSS?

I'm having trouble creating an image that stays inside a div, maintaining its proportions. However the div has a default size, and can not exceed this limit size. Below is an image that illustrates my intention: Below is the code in...
asked by 23.06.2016 / 20:50
1
answer

div does not respect size defined in css

I'm trying to create a messaging system, but the formatting of the div is not respecting the size. I would like you to help me, to know where I am wrong: #limit { max-width: 500px; } #table-overflow { max-height:400px; ove...
asked by 11.08.2015 / 03:43
3
answers

How to update a DIV with PHP

Hello, I have read some tutorials on how to update every few seconds (using javascript, jquery, etc.) and was wondering if there is a way to update a DIV with PHP itself , when you press a button for example. For example, when doing a search...
asked by 08.05.2015 / 17:30
1
answer

Unnecessary space in sales module div

Ihaveaquestionforyou.MyproblemisthatthespaceontheviewistoobigifIhidethesameoptionsintheshoppingcart!Mycodehidestheproductimagebuttheemptyspaceislarge.Iwanttofixthistohaveabeautifullayout./app/design/frontend/rwd/default/template/customcart/cart/...
asked by 06.02.2015 / 08:25
1
answer

How to dynamically position a div with content inside another created dynamically?

On my site, I create a div dynamically after the second paragraph (forum). I would like to place a banner already loaded within this div . I tried several ways, give apendchild , but it will not. Here is the URL of t...
asked by 10.10.2014 / 00:55
1
answer

How to capture the size of a div where the value was not set

I have a div, which contains a text inside, when I mouse over it, another div, which is a small bar of height:3px , stops being display:none and stays display:block , until Oh calm, everything is working. However, I would like...
asked by 18.06.2014 / 14:05
1
answer

Automatically insert Youtube video into a div

In the site I'm developing, it has a div element, where it needs to automatically capture YouTube videos from a channel, that is, if the user / channel uploads a video, it will automatically show the last video in this div . Has...
asked by 17.06.2014 / 14:15
0
answers

Image hover about div not working

I have a div that when hovering the mouse and this makes the hover, is being cut precisely by the div of the main box of the message and so far I could not adjust. Could anyone help? .bull_dog { position: absolute; to...
asked by 21.06.2018 / 20:43
1
answer

Field with auto required in java script

I have my code where I select an item and the field suits each case. When I select number the field returns a given type to be typed and works fine (I got the hint on another question I made by Marcelo Uchimura), however, I now want to know how...
asked by 03.06.2018 / 18:09
1
answer

Resize img within a div

Hello, I have a site that has posts ... and in some posts I put images in them, however these images are not responsive! and there is no way to change her class to a responsive class ... because these posts are taken from a database for $ variab...
asked by 19.05.2018 / 01:34