Previous Message
Next Message

RE: [css-d] height:100% and netscape6

Sent by jeff kiesel on 21 February 2002 08:08


james - 

ok, it did work.  by applying 100% to to the html and
body elements, it strecthes to fit the height.  i
never would have though of that, thanks.  how did you
know to do that?  still doesn't work in ns4x.  poop.


--- James Aylard [EMAIL-REMOVED]> wrote:
> jeff,
> 
> > i tried the approach you suggested, and it didn't
> > work.
> > 
> > <div id="testdiv" height="100%">this div should
> have a
> > height of 100%</div>
> 
> 	Strange. I tried it, and it _did_ work. Did your
> document look
> something like this?:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN"
>   "http://www.w3.org/TR/html4/loose.dtd">
> <html lang="en-US">
>   <head>
>     <meta http-equiv="Content-Type"
> content="text/html;
> charset=iso-8859-1">
>     <meta http-equiv="Content-Style-Type"
> content="text/css">
>     <title>Div with 100% Height</title>
>     <style type="text/css">
>       html
>       {
>         height: 100% ;
>       }
>       body
>       {
>         height: 100% ;
>         margin: 0px ;
>         background-color: #ffffcc ;
>       }
>       #testdiv
>       {
>         height: 100% ;
>         width: 200px ;
>         background-color: #cccccc ;
>       }
>     </style>
>   </head>
>   <body>
>     <div id="testdiv">This div should be 100% in
> height</div>
>   </body>
> </html>
> 
> 	If not, try that and let me know what you find. I
> also tested
> this in Netscape 6.2.1, and it worked just as it had
> in Mozilla 0.9.8.
> 
> James Aylard
> 
> _______________________________________________
> css-discuss [EMAIL-REMOVED]]
> http://two.pairlist.net/mailman/listinfo/css-discuss
> Sponsored by www.westciv.com - CSS resources |
> software | learning


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
Previous Message
Next Message

Message thread:

Possibly related: