fixed height IE

Discussion in 'HTML' started by Wacek, Aug 26, 2005.

  1. Wacek

    Wacek Guest

    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>
     
    Wacek, Aug 26, 2005
    #1
    1. Advertising

  2. Wacek

    windandwaves Guest

    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
     
    windandwaves, Aug 26, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mau

    Datagrid with fixed height

    Mau, Oct 25, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,740
    =?Utf-8?B?c3Jpbmk=?=
    Oct 25, 2004
  2. N. Hamacher
    Replies:
    1
    Views:
    412
    Tony Morris
    Apr 29, 2004
  3. johnp
    Replies:
    4
    Views:
    3,722
    Toby Inkster
    May 23, 2005
  4. dust
    Replies:
    1
    Views:
    10,773
    Matthias Pieroth
    Jul 4, 2006
  5. DC
    Replies:
    2
    Views:
    1,261
Loading...

Share This Page