Forum Moderators: not2easy

Message Too Old, No Replies

how to get rid of any indent on ordered lists

         

willeffects

2:58 am on May 7, 2005 (gmt 0)

10+ Year Member



Im using a <ol> but id like the <li> items to not indent at all. Anyone know what controls this?

Thanks,
Will

RammsteinNicCage

3:37 am on May 7, 2005 (gmt 0)

10+ Year Member



Try setting the margin on the ul to zero. If that doesn't work, then set the margin on the li to zero (I'm pretty sure it's the ul, but just in case).

Jennifer

willeffects

4:20 am on May 7, 2005 (gmt 0)

10+ Year Member



Thanks, I had to set the li to margin-left:-10px; . Looks like IE and FF handle it a bit differently though, a few pixels off.

Will

ShaneP

11:11 am on May 10, 2005 (gmt 0)

10+ Year Member



If you want to create a custom looking list, you usually remove the padding/margins on the list right away.

ul {
padding:0;
margin:0;
}