PDA

View Full Version : liquid layout


indianleo
06-12-2009, 04:00 PM
hello friends,
In my layout I had used the below code

<div>
<div align="center" style="height:15px; background:url(images/color_strip.gif) repeat-x; text-align:center"></div>
<div style="width:80%; border:1px solid #000000;">
<div style="width:55%; padding:10px; float:left; text-align:left;"></div>
<div style="width:40%; float:right; "></div>
</div>

but some where the 60% container which holds two with left float and right flot does not appear in center

DWcourse
06-12-2009, 04:05 PM
You don't show a 60% container in your code. You center a div by setting a width and setting left and right margins to auto.

indianleo
06-12-2009, 04:33 PM
Thnks a lot