PDA

View Full Version : Indent level for an li element



Roelf
06-26-2002, 04:22 PM
Hi,

how can i adjust the indent level for an li element in an unordered list.

Roelf

QuackHead
06-26-2002, 04:23 PM
Which way do you want to adjust it?

jkd
06-26-2002, 06:39 PM
Experiment with:

li {
margin-left: 5px;
}

You can also try padding-left; :)

QuackHead
06-26-2002, 07:32 PM
That'll probably only work for IE, I could be wrong though.

~Quack

jkd
06-27-2002, 01:38 AM
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, 09:51 AM
thanks, the margin-left property worked fine for me

Zvona
06-28-2002, 09: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>