...

View Full Version : UL height?



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

Thanks

Eskimo
03-03-2004, 11:16 PM
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.

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

mqcarpenter
03-03-2004, 11:25 PM
Ah. I was trying to do it all from the CSS on the UL element.

Thanks for the tip. That is perfect!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum