Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > nested divs - newbie question

Reply
Thread Tools

nested divs - newbie question

 
 
Bernd Liebermann
Guest
Posts: n/a
 
      12-17-2004
Hi,

my problem seems to be quite simple but i haven't found the answer yet:

i have one outer div containing two absolutely positioned inner divs.
The height of the inner divs varies on the amount of content. Now the
outer div's height should grow with the inner divs' height. how can this
be achieved?

example: http://www.bernd-liebermann.de/css_test.php

Thanks for your help!

Bernd Liebermann
 
Reply With Quote
 
 
 
 
Matthias Gutfeldt
Guest
Posts: n/a
 
      12-17-2004
Bernd Liebermann wrote:
>
> my problem seems to be quite simple but i haven't found the answer yet:
>
> i have one outer div containing two absolutely positioned inner divs.
> The height of the inner divs varies on the amount of content. Now the
> outer div's height should grow with the inner divs' height. how can this
> be achieved?
> example: http://www.bernd-liebermann.de/css_test.php


Impossible.

"Absolutely positioned boxes are taken out of the normal flow."
<http://w3c.org/TR/CSS21/visuren.html#propdef-position>

Think about what you're trying to achieve, and find a different
solution. Lots of CSS layouts here:
<http://css-discuss.incutio.com/?page=CssLayouts>


Matthias

 
Reply With Quote
 
 
 
 
Travis Newbury
Guest
Posts: n/a
 
      12-17-2004
In article <cpupe3$kaf$(E-Mail Removed)>, http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> my problem seems to be quite simple but i haven't found the answer yet:


> i have one outer div containing two absolutely positioned inner divs.
> The height of the inner divs varies on the amount of content. Now the
> outer div's height should grow with the inner divs' height. how can this
> be achieved?


You would probably have to use tables to do simulate that. <insert your
favorite table less layout quote here>
--
-=*Tn*=-
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
swapping divs -- when divs NOT positioned absolutely.. maya Javascript 4 11-16-2007 05:11 PM
Managing divs within divs.... rich HTML 0 02-02-2006 07:38 PM
'clear' inside of nested divs Jens Lenge HTML 22 03-15-2005 01:21 PM
Nested DIVs - is there a better way? Guadala Harry ASP .Net 2 10-26-2004 07:30 PM
XHTML and nested divs dbunder HTML 2 12-20-2003 04:51 PM



Advertisments