Previous Message
Next Message

Re: [css-d] DIV background problem

Sent by Philip Hoyt on 31 January 2002 21:09


There was a particularly vicious thread on this subject at w3c's style 
list. Apparently it isn't really possible. Look out for css level 3 to 
fix the problem. That or just try to come up with an ingenious and 
original solution of some sort. perhaps position:fixed my do the trick.

On Thursday, January 31, 2002, at 12:40 PM, Robin Hall wrote:

> I had this great idea...  (I won't keep you in suspense, it doesn't 
> work -
> but I don't know why...)
> How about if you enclose both the menu and content divisions within a
> containing division?
>
> So now I have
>
> <body>
>   <div id="all">
>     <div id="navbar">
>      *content of menu div*
>     </div>  <!-- navbar -->
>     <div id="main">
>       *content of main div*
>     </div>  <!-- main -->
>   </div> <!-- all -->
> </body>
>
> Then I thought that the DIV all would extend over the whole page and is 
> the
> containing block of DIV navbar, so by setting
>
> div#navbar {height: 100%; }
>
> I can acheive the desired effect.  However it doesn't work...
> I tried putting a great big red border around the whole lot by setting
>
> div#all {border: thick red solid }
>
> to see what is going on, in IE the border covers the whole page but it 
> MZ  I
> only get the border abound part of the page - it only extends downwards 
> as
> far as the bottom of the menu!
>
> see http://www.elandigitalsystems.com/mce/index.php
>
> Another fine plan...
>
> Robin
>
>
>
>
>
> _______________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://two.pairlist.net/mailman/listinfo/css-discuss
>
Previous Message
Next Message

Message thread:

Possibly related: