Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't specify percentage height for <div>?

Status
Not open for further replies.

jemminger

Programmer
Jun 25, 2001
3,453
US
hello,

in IE6 and NS7, when using a DTD (loose or strict), i cannot set the height of a div to a percentage:

<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;<div style=&quot;height:95%;border=1px solid red;&quot;>div</div>

or
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; &quot;<div style=&quot;height:95%;border=1px solid red;&quot;>div</div>

if i leave the DTD off, it works fine. am i doing something wrong?



=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top