Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > fixed height IE

Reply
Thread Tools

fixed height IE

 
 
Wacek
Guest
Posts: n/a
 
      08-26-2005
In example below, Firefox and Opera have fixed height of footer and
header .
IE gives wrong height for this cells. Why?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-2">
<style type="text/css">
* {margin: 0;padding: 0}
body, html {height: 100%}
#header{height: 100px}
#footer{height: 20px}
TABLE {height: 100%}
</style>
</head>
<body>

<table border="1">
<tr>
<td id="header">header</td>
</tr>
<tr>
<td>content</td>
</tr>
<tr>
<td id="footer">footer</td>
</tr>
</table>

</body>
</html>
 
Reply With Quote
 
 
 
 
windandwaves
Guest
Posts: n/a
 
      08-26-2005
Wacek wrote:
> In example below, Firefox and Opera have fixed height of footer and
> header .
> IE gives wrong height for this cells. Why?
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>


have you tried HTML strict? Not sure if it will work, but it may

- Nicolaas


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting exact height of a panel with a height="100%" samer ASP .Net 3 09-28-2009 05:21 PM
Why can't I change height with <col width="50" height="100">? Bernd Meier HTML 6 01-14-2008 07:25 AM
textbox height different than input height tshad ASP .Net 1 03-08-2007 10:04 PM
measuring web controls height at runtime (or converting .height % to px) Wotney ASP .Net 1 10-25-2006 01:39 PM
how to get specific cell height without hard-coding a height value laredotornado@zipmail.com HTML 0 08-19-2006 08:13 PM



Advertisments