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
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts

    max-height and IE 6+

    Ok, I've seen many posts which suggest using max-width/height to accomplish 'stuff', but that doesn't seem to be working for me. Does IE 6+ actually support the style max-height???
    I've got a DIV that I use to implement a combobox tree like the address bar on windows explorer. I only want it to grow to a max height of 150pt, and and be scrollable. the div has an id='objsetlist' so I coded the style as follows, but it grows indefinitely (or at least past 150pt).

    #objsetlist
    {
    width:250pt ;
    max-height:150pt ;
    overflow:auto;
    border:thin solid black ;
    }
    Wayne Christian

  • #2
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    No, iew does not, in difference to modern browsers. You need to work around it somehow.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #3
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A couple of useful hacks:
    Underscore hack (Pixy)
    Min-height hack (Pixy)
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #4
    wac
    wac is offline
    Regular Coder wac's Avatar
    Join Date
    Sep 2002
    Location
    Cary, North Carolina, USA
    Posts
    359
    Thanks
    2
    Thanked 0 Times in 0 Posts
    argh! Of course this is the opposite of what I want (max-height, not min-height) and I'm clearly not sharp enough to see how it would apply. Should I create an outerbox whose height is fixed while setting the innerbox with an auto height (and the border)???
    Wayne Christian


  •  

    Posting Permissions

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