Re: set div width to remaining width of the browser
- From: Yuriy Solodkyy <y.dot.solodkyy@xxxxxxxxx>
- Date: Fri, 15 Jun 2007 18:00:25 +0000 (UTC)
Do you need this?
<div style="float:left; width: 10em; border: solid 1px red">
ZZZZZ
</div>
<div style="margin-left: 10em; border: solid 1px green">
www
<div>
using float: left and float: right to build a two column page
layout.
<div style="float:left">column 1</div>
<div style="float:right">column 2</div>
then I set the width of the first column to a fixed size: <div
style="float:left; width:10em;>column 1</div>
how can I set the width of the 2nd column, the float:right div, to
fill the remaining space of its container?
I know I can use percentages, but I want the left column to always be
the same fixed length.
Is this a case where <table> is the obvious solution?
thanks,
-Steve
.
- Follow-Ups:
- Re: set div width to remaining width of the browser
- From: Steve Richter
- Re: set div width to remaining width of the browser
- References:
- set div width to remaining width of the browser
- From: Steve Richter
- set div width to remaining width of the browser
- Prev by Date: Adding AJAX to an existing app
- Next by Date: Formatting a date in a gridview with auto-generated fields
- Previous by thread: set div width to remaining width of the browser
- Next by thread: Re: set div width to remaining width of the browser
- Index(es):
Relevant Pages
|