Re: Basic (?) CSS question
- From: richard <member@xxxxxxxxxxx>
- Date: Sun, 25 Jan 2009 22:30:04 -0500
On Sun, 25 Jan 2009 21:50:58 -0500, Padmar Mushkin <x@xxx> wrote:
I have a page with 2 columns. The right column is fixed width, and I
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.
Put both in a container. Set the width of the container to what ever.
Then define the width of the left div.
<div style="width:100%;"> <<< container
<div style="float:left; width:20%;"> <<<left div.</div>
<div style="float:left;">data</div>
</div>
.
- Follow-Ups:
- Re: Basic (?) CSS question
- From: rf
- Re: Basic (?) CSS question
- References:
- Basic (?) CSS question
- From: Padmar Mushkin
- Basic (?) CSS question
- Prev by Date: Re: Image bordered div Vol. II
- Next by Date: Re: Basic (?) CSS question
- Previous by thread: Basic (?) CSS question
- Next by thread: Re: Basic (?) CSS question
- Index(es):
Relevant Pages
|