Stop fluid website at a certain size

Discussion in 'HTML & Website Design' started by overdrive, Apr 5, 2008.

  1. #1
    Hello,

    I have a fluid site that was designed for me way back when and I have modified it a lot. I am having a problem because my main container is able to shrink down and knock all the content off the page down to the bottom of the site. I was able to make sure that the height had a minimum size, but I cannot get the width to stay at a specified minimum size, so it will stop pushing information off. Does anyone know how to do this either with css or just hard coded? I need some help. Thanks. If you want to see my site, it is the one in my site with Car Audio as the title.
     
    overdrive, Apr 5, 2008 IP
  2. SitPoMk

    SitPoMk Peon

    Messages:
    457
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    yea no problem

    For your wrapper div set
    min-width: 800px;
    or obviously, any amount of pixels that suites you

    hope it helps
     
    SitPoMk, Apr 5, 2008 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    Unfortunately, min-height only works in modern browsers and not IE. Actually, it will work in IE7 but there are caveats with that. It can trigger 'haslayout' which may mess up other parts of the site.

    One way to deal with it is to just set 'height' which IE treats as min-height (go figure). But then modern browsers will see the 'height' property and use that.

    So, as usual, we should fix IE and not try to fix the modern browsers. The best way is to use conditional comments and put the height property in there.
     
    drhowarddrfine, Apr 5, 2008 IP
  4. overdrive

    overdrive Active Member

    Messages:
    969
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    80
    #4
    drhowarddrfine, min-height works fine in IE6 as well, or at least on my site it does. I am not worrying about that anyway, I need the width minimum in place. Thanks for the helpl.
     
    overdrive, Apr 5, 2008 IP