- From: REFSTRUP,JACOB (HP-Vancouver,ex1) <jacob_refstrup@hp.com>
- Date: Fri, 2 Aug 2002 20:19:16 -0400
- To: "www-style (E-mail)" <www-style@w3.org>
In the following example a p has a height of 4in; the div inside that has height: 50% and the div inside that has a height: inherit. In reading the spec I assume that the inner div should inherit the computed value (not percentage). This is the behaviour Mozilla uses. But IE6.0 (Win32) and Opera6.0 seem to ignore height: inherit and use height: auto instead. Comments? - Jacob <html> <head> <style type="text/css"> div { overflow: hidden; border: solid thin black; padding: 0.5em } div.one { height: 50% } div.two { height: inherit} </style> </head> <body> <p style="font-style: italic"> Below is a <b><p></b> with a height of 4in. Inside it has a <b><div></b> with height 50%; inside is another <b><div></b> with height set to inherit. </p> <div class="one"> a <div class="two"> b </div> </div> </body> </html>
Received on Friday, 2 August 2002 20:19:19 UTC