SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Threaded View

  1. #1
    SitePoint Wizard Dean C's Avatar
    Join Date
    Mar 2003
    Location
    England, UK
    Posts
    2,906
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Special kind of 3 column layout

    I'm sure this has been asked before, and I did do a search, but sifting through the mass of CSS threads on multi-column layouts proved to be a nightmare.

    What i'm looking to do is have a fixed width layout of say 700px width. Then within that I'd have 3 columns. A left column of width 150px, center column of width 400px and a right column of width 150px. However, what I want to be able to do, is that if I decide not to include the div for the left hand column, or the right hand column, or both, then the center column will expand into the space that was once occupied by the other columns.

    The thing that makes this slightly easier than other 3 column layouts is that the background colour of all 3 divs is white, so I don't need to stretch any backgrounds All i have to worry about is the width of the columns.

    I need to support IE6+, Firefox, Opera.
    Last edited by Dean C; Sep 25, 2007 at 04:34.


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
  •