Results 1 to 2 of 2

Thread: Weird IE min-width problem: It only HALF works!!?

  1. #1
    Join Date
    Jun 2006
    Location
    UK
    Posts
    15

    Angry Weird IE min-width problem: It only HALF works!!?

    Hi All!

    I'm working on a new layout for my site, and instead of the fixed with table, I’m trying to use a fluid css layout with a minimum 780 width. Since IE doesn't support min-width I have run into many problems.

    Firefox is FINE

    I have started using a layout from Ruthsarian Layouts which is perfectly what I am after, however I have a problem in IE. I have tried various methods to solve this including placeholder transp gifs, wrapper/content divs, hidden tables, hr's.

    Top logos and navigation remain fixed at 780 pixels
    Main column CONTENT expands and shrinks with browser window but the BORDER remains fixed...!

    Here is a little demo to illustrate the point. The yellow line is a 780px gif (tried using this to limit width, didn't work)

    http://lonewolf-online.net/test/index.htm

    The pink lines are the wrapper div borders. When wrapper is less than yellow line, the pink border stays put, but the contents flows!


    Any ideas and help on fixing this is greatly appreciated.

    Thanks

    Tim.

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    The main reason IE6 stays wider while the content shrinks in a small window is that the right header image http://lonewolf-online.net/test/images/tops/logo1.jpg is quite wide and because it has a fixed width it causes a scroll bar and extends out right while the lower content does not need to.
    The yellow gif has the same effect, as do all the menu links.

    As you know, IE does not support min width but you can make it do so with jello Molds.
    See http://www.wickham43.supanet.com/tut...xminwidth.html where I have used it and IE6 and Firefox both have a max and min width. You may be able to use this method but too many hacks on the same page may co***ict with each other.

    Otherwise just abandon the min width hack and you should be able to keep the content as the same width as the headers in IE6 (and Firefox) by making the content divs the same overall width as the header images because they will create the minimum as they do now but the content won't get any less.

    What you are seeing in IE6 is perfectly normal. If you open your page in a small window the content fits the window but the header and menu links are wider so they extend right. When you scroll to see the rest of them, the content stays where it was so you think there is a gap on the right. Firefox is operating the minimum width so the effect is not the same but it would be if the minimum width hack was not being used.
    Last edited by Wickham; 17 Sep 2006 at 01:14 PM.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Posting Permissions

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