Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Basic (?) CSS question
- Padmar Mushkin
January 26, 2009, 2:50 am
rate this thread
want the left column's width to expand to fit the remaining space.
I used to do this with a table, but 'm trying to learn to do things
the right way with CSS, but I can't seem to get it to work. Both
columns are DIVs; I've tried floating them, absolute positioning them,
setting the left column's width to 100%; not setting the width. But
the columns end up either overlapping, or the right column appears
below the left column.
Re: Basic (?) CSS question
There is no need at all for this container div.
That would be float: right; for a right hand column. And probably width:
some number if *pixels* since it's a fixed width column.
Float is not required at all for the data column, just a right margin as big
or bigger than the *right* floated div.
- Beauregard T. Shagnasty
January 26, 2009, 3:58 am
- » Linking to graphics and stylesheet on a separate site - IE7 blocking cookies and saying "N...
- — Previous thread in » HTML Markup Language