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 4 of 4
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Min-Height With IE

    ok, i am getting extremely frustrated with this.

    i have a "mainbody" class which contains the border and such for the main website. then inside that i have 3 columns. i used all divs, no tables.
    sometimes the div's content is not long enough to cover the sidemenu height, the minimum height, which is about 400. so i used min-height:400px;. seems appropriate. well it immediately worked for firefox. but it is NOT working for internet explorer and i have tried so many things including everything on this page:
    http://www.dustindiaz.com/min-height-fast-hack/

    Can someone please help me?
    The question: how to get a minimum height using internet explorer.

  • #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
    Code:
    * html selector {
    height:400px;
    }
    Where selector is the element that you want to have the min-height. That will only target IE6 and below. IE7 understands min-height.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i am afraid that IE7 does Not understand min-height!

  • #4
    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
    Yes it does. If it doesn't then its likely that you code is invalid in the first place. IE7 doesn't understand min-height if a partial doctype is used or if no doctype is present. Post the rest of your 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
    •