![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a better way? This is the only thing I miss about table controlled layouts - they seem more stretchy friendly. |
#3
| |||
| |||
|
|
Mark wrote: Is there a better way? This is the only thing I miss about table controlled layouts - they seem more stretchy friendly. Yes, the basic principle is to float two <divs> which have been inserted into a container <div>. Then use a background image (slab of color) in the container <div>. To make the container <div> wrap itself around the two floated <divs use a another <div> inserted directly before the closing container /div> tag with the css property clear: both; If you take the simple example below, add a bg image to the container div> then you can type as much or as little as you want in either of the two inserted <divs div style="width: 700px; margin: 0 auto" div style="float: left; width: 250px">Left</div div style="float: left; width: 450px">Right</div div style="clear: both; height: 1px; overflow: hidden; line-height: 1px; margin-top:-1px"></div /div |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |