www.webdeveloper.com
Results 1 to 4 of 4

Thread: min-height fix for IE & Mac 5.2?

  1. #1
    Join Date
    Nov 2007
    Posts
    75

    min-height fix for IE & Mac 5.2?

    I have set a container with a min-height of 100%. However, when I do the browser compatibility checks -- it states that IE, Safari 2 & Mac 5.2 don't support this property. Is there a way around this?

  2. #2
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    Not sure about the other browsers, but IE6 treats height like min-height, so it is simply a matter of supplying IE6 only the height - the * html method is useful for that.

  3. #3
    Join Date
    Nov 2007
    Posts
    75
    Quote Originally Posted by Centauri
    Not sure about the other browsers, but IE6 treats height like min-height, so it is simply a matter of supplying IE6 only the height - the * html method is useful for that.
    So if I apply

    * html #container {

    height: 100%;
    }

    It should be fine -- I presume...?

  4. #4
    Join Date
    Mar 2006
    Location
    Newcastle NSW Australia
    Posts
    4,033
    Yes, that will behave like min-height:100% in decent browsers.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles