SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    min width for IE 6

    I know there are no hacks for min width that work in IE 6. But b/c I'm making changes to this site. I need to have the center column have a min width set to 1024.

    The layout of the page is a header that resizes followed by a left column that is fixed width, a center column with a fluid width and a right column with a fixed with. Due to the way IE 6 reads the center column, which I know everyone knows that when resized its pushes the content down the smaller the width.

    I'm sure this issue has been repeated several times. I've been put in charge to find resolution to this. We haven't had the company fully change over to IE 7 so we still have to test in IE 6 which is such a pain. Any help with this issue is much appreciated.

    thanks

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would something like this work for you?
    http://www.pmob.co.uk/temp/min-width-ie.htm

  3. #3
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,347
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    The easiest solution for a 3 column would be to use an expression although the example Dan showed could be coaxed to work but is a little complicated.

    http://www.pmob.co.uk/temp/3col-new-05.htm

  5. #5
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So sayeth the author.

  6. #6
    SitePoint Guru james_littler's Avatar
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    775
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just a quick q on this, ie6 does support min height, it just refers to it as height... is the same true with width?

    easy way to apply min width with no hacks is to just put a div 300px x 0px within the div when it reaches the stop div's fixed size the div will go no further, provided overflow is hidden

  7. #7
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, it's not the same as width in IE6. It only seems that height works as min-height in IE6 cos it incorrectly expands in height to contain content no matter what height is set. It doesn't do that with width.

  8. #8
    SitePoint Guru james_littler's Avatar
    Join Date
    May 2007
    Location
    Portsmouth, UK
    Posts
    775
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah i c... silly silly silly ie grrrr

  9. #9
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,347
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by tyssen
    It doesn't do that with width.
    I know this is probably going to confuse things but although width isn't treated as min-width in IE6- it will however stretch the width to accommodate any content that will not fit within.

    This means that for example an image that has a bigger width than the parent, or a nested div that has bigger width than the parent, or a string of unbroken text, in these cases IE6 will increase the parents width also (usually with disastrous results.)

    It will not however increase the width if it holds normal unbroken text or anything that actually fits. It's only when things don't fit that it will stretch the parent.

    Other browsers will just let the overflow be visible but ignored with respect to the rest of the page.

  10. #10
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Paul O'B View Post
    It will not however increase the width if it holds normal unbroken text or anything that actually fits.
    Yeah, that's what I meant.

  11. #11
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,347
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by tyssen
    Yeah, that's what I meant.
    Yes I know you did but I was thinking of others


Bookmarks

Posting Permissions

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