View Full Version : UL height?

03-04-2004, 12:10 AM
Is there a way to increase space between <LI> elements in a <UL>? I want them to have more space than a typical list.


03-04-2004, 12:16 AM
css would look like this:
li { margin: ?px(em) 0 ?px(em) 0:}

Margin allows you to set all four directions in one line (top right bottom left). As opposed to margin-top:x; || margin-bottom:x;.

replace the "?" with whatever distance you wish to have for the list, and choose wheather you want to use px's or em's.

You will need to set the other zeros to whatever you wish in order to get the list to indent properly for you.

li {margin 5px 0 5px 15px;}

03-04-2004, 12:25 AM
Ah. I was trying to do it all from the CSS on the UL element.

Thanks for the tip. That is perfect!