Click to See Complete Forum and Search --> : How to do space box on the left with div? Simple question


toplisek
11-15-2006, 04:59 AM
I have the following code for div:
<div class="fl_center">
<ul class="error">
<li>CENTERED box within DIV of style {fl_center}</li>
<li>this is sample</li>

</ul>

</div>

and css:
.fl_center{
clear:both;
display:table;
width:100px;
margin:0px auto;
}

How to add space on the left of box with div? Need help

mooi
11-15-2006, 06:07 AM
I'm not exactly sure what you mean, but I'll give it a shot.

To have 10px space outside the left side div, set the following CSS attribute:
margin: 0px auto auto 10px;

Or

To have 10px space between the content in the div and the border of the div, set the following attribute:
padding-left: 10px;

:)