Float problem

Discussion in 'Web Design and Development' started by Albone, Apr 19, 2007.

  1. Albone macrumors regular

    Jul 22, 2003
    Hello, I did a search for the problem I have and my problem doesn't seem to fall under what's been discussed before. If it has, I apologize.

    On my site, I'm trying to have 3 columns, underneath a webcomic of mine. The problem is that I'd like the 3 columns to be fixed in place but if you shrink the window, the columns end up collapsing on each other. Conversely, if you stretch the window out, the right column adheres to the right side of the browser widow, creating a big gap between the right column and middle column.

    Any way that I can fix it so the columns stay fixed? Additionally, I'd like the entire page to float in the center of the window, but everything within to stay fixed, like apple.com for instance.

    My site:

    Thanks for your time and your help.
  2. Albone thread starter macrumors regular

    Jul 22, 2003
    Amazingly this:

    margin:0 auto;

    in the body and adding a border did the trick. Hurray! :p

Share This Page