#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    Norway
    Posts
    34
    Rep Power
    13

    CSS: problems with the height property


    I'm developing a site which is based on CSS and XHTML.

    I have a div which uses the "height" property with a percentage value. The height of the div box is supposed to be 100%, and that works in both Opera, Mozilla and even IE 5 and 5.5, but not in IE 6!

    In IE 6 the height of the box is only relevant to the containing text, and not relevant to the browser window. This means that the div is far from 100%.

    What can be done to work around this?
  2. #2
  3. No Profile Picture
    Just Diggity
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Sherman Oaks, CA
    Posts
    126
    Rep Power
    13
    You could retrieve the height of the window and then adjust the value of the div height using that value if the browser (using some browser sniffing) is IE 6.0
    Dave Pedowitz
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    Norway
    Posts
    34
    Rep Power
    13
    Thanks, man. I ended up making a script that makes a specific style to IE 6.

IMN logo majestic logo threadwatch logo seochat tools logo