Matt Thommes wrote:
> I've noticed that the CSS 'line-height' property provides extra
> spacing between list items, such as in an ordered list, unordered
> list, as well as definition lists.

I try to favor line-height rather than padding if I'm dealing with an
element that is styled with a height declaration (because of IE5/Win's
broken box model).
So for horizontal lists, I use:
line-height: X
min-height: X
and then height: X for MSIE
This technique has the advantage of centering the text vertically without
the need of padding.
It works with vertical Lists too, but there is a bug in Gecko browsers that
would randomly create a small gap between some of the list items.

Thierry | http://www.TJKDesign.com

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to