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 6 of 6
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    is there a hack for IE to do min-height?

    I have need to use the min height attrubute but IE doesn't seem to like it - it just ignores it.

    Is there a hack or something that would help?

    Bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Min/max-height does not work in IE.

    http://www.doxdesk.com/software/js/minmax.html

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You don't need JS to do it - even though IE doesn't support min-height, its implementation of height is almost identical to the correct implementation of min-height.

    So:
    Code:
    element { min-height:100px; }
    * html element { height:100px; }
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Or you could do

    Code:
    element {height: 100px}
    parent>element {min-height: 100px}
    Since IE doesn't use the > selectors.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But IE for Mac does support that selector, yet it doesn't support min-height
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Quote Originally Posted by brothercake

    Code:
    element { min-height:100px; }
    * html element { height:100px; }
    Thnanks brothercake, I'll try that. I am assuming that element is a generic term that I should change for my specifics but I'll probably find that out shortly anyway when I try it.

    Edit: yup, I nearly got it sorted when I changed 'element' to the name of my div. In IE, I get a new issue when I roll over my navmenu. the div height reduces by about 40px! I'll start a new thread for that.


    Bazz
    Last edited by bazz; 03-23-2005 at 11:19 AM.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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