Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Location
    The Netherlands
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Minimum height in IE6

    Hi all,

    I am developing a webcommunity and I have a problem with the minimum height in Internet Explorer 6. As far as I know there are two options to set a minimum height to a webpage:

    • min-height CSS element
    • JavaScript expression: height: expression(document.body.clientHeight < 420? "420px": "auto" );


    The 'min-height' CSS element doesn't work in IE6, so that leaves us with the JavaScript expression. I am already using an other height expression in my CSS code to make the main DIV as heigh as the screen on IE6 without using percentages:
    Code:
    height: expression((parseInt( document.documentElement.clientHeight ))+'px');
    Does anyone know how to combine those two expressions, so that my webpage is maximum screen height and is configured with a minimum height? Or does anyone knows an other solution?

    Thanks!

    P.S. I don't know where this topic belongs, JavaScript or HTML/CSS.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    There is actually one more solution. Read this: http://www.cssplay.co.uk/boxes/minheight.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •