| View previous topic :: View next topic |
| Author |
Message |
numerical25
Joined: 17 Aug 2006 Posts: 7
|
Posted: Wed Mar 12, 2008 9:43 pm Post subject: making my Div longer when content gets put in |
|
|
| Im trying to have it where when content is placed inside a div. The div gets longer . Right now if I put a picture or nest another div and make the nested div longer in hieght, they just overlap the div their inside of. how do i get it where the div will not allow anything inside of it to overlap it ??? |
|
| Back to top |
|
 |
|
|
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Thu Mar 13, 2008 1:50 am Post subject: Re: making my Div longer when content gets put in |
|
|
By setting the div's height to 100% will provide the aide.
Note that this will depened on the div's container's height  |
|
| Back to top |
|
 |
numerical25
Joined: 17 Aug 2006 Posts: 7
|
Posted: Thu Mar 13, 2008 7:30 pm Post subject: Re: making my Div longer when content gets put in |
|
|
| Ok thanks alot. The only problem is that it works in explorer. But not in mozilla ??? why ?? |
|
| Back to top |
|
 |
dflynn 500+ Club

Joined: 03 Oct 2007 Posts: 588 Location: Guelph, Canada
|
Posted: Thu Mar 13, 2008 8:11 pm Post subject: Re: making my Div longer when content gets put in |
|
|
try changing your css to:
position: static;
height: auto;
It's what I have working in mine to allow the parent div grow with the nested divs.
cheers |
|
| Back to top |
|
 |
rangana 500+ Club

Joined: 27 Feb 2008 Posts: 629 Location: Cebu City Philippines
|
Posted: Fri Mar 14, 2008 12:53 am Post subject: Re: making my Div longer when content gets put in |
|
|
| numerical25 wrote: |
| Ok thanks alot. The only problem is that it works in explorer. But not in mozilla ??? why ?? |
Could you provide us a link to your site?.. |
|
| Back to top |
|
 |
|