W3C home > Mailing lists > Public > www-style@w3.org > June 2012

Re: boxes within boxes within boxes (SOLVED)

From: william drescher <william@TechServSys.com>
Date: Thu, 28 Jun 2012 07:07:29 -0400
To: www-style@w3.org
Message-ID: <jshdtk$r32$1@dough.gmane.org>
On 6/27/2012 11:36 AM, william drescher wrote:
> I have a problem positioning the 4th div
>
> <div>
>     <div>
>       <div>
>       <div>
>
> I want the 3rd and 4th divs to be side by side with the 2nd div
> to have a height large enough to contain the larger of the 3rd or
> 4th.
>
> The first div is always visible, the 2nd div controls the
> visibility of the itself and the 3rd and 4th (using the property
> display:inherit).
>
> If I set
> <div style="display: inherit; position:relative; top:00;
> left:605px; width:background-color:#ddffee; border: 1px solid
> white; width:390px;" ">
> to the 4th div, it is no longer contained in the 2nd div.
>
> If I set the position:relative, it works, but I can not figure
> out how to have it beside the 3rd div (it is correctly moved to
> the right but is below the 3rd div)
>
> Help is appreciated.
>
> bill
>
>
I was so fixated on "positioning" I forgot about float.
Received on Thursday, 28 June 2012 11:08:12 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:55 GMT