View Full Version : Indent level for an li element
Roelf
06-26-2002, 03:22 PM
Hi,
how can i adjust the indent level for an li element in an unordered list.
Roelf
QuackHead
06-26-2002, 03:23 PM
Which way do you want to adjust it?
Experiment with:
li {
margin-left: 5px;
}
You can also try padding-left; :)
QuackHead
06-26-2002, 06:32 PM
That'll probably only work for IE, I could be wrong though.
~Quack
Originally posted by QuackHead
That'll probably only work for IE, I could be wrong though.
~Quack
Should actually work in IE5+ and any Gecko-based browser, as well as Opera 5+.
I'm not sure about IE4.
Roelf
06-27-2002, 08:51 AM
thanks, the margin-left property worked fine for me
Zvona
06-28-2002, 08:04 AM
I use div element for better results :
<div style="width:640px;">
<ul>
<li style="margin-left:20px;">Intended 20 pixels</li>
<li>Not intended</li>
</ul>
</div>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.