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.
In the past, I've always used the 'margin' property to add spacing
between list items.
IE:
ul li
{
margin-bottom: 5px;
}
However,
G'day
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 was wondering if anyone else uses 'line-height' - or do most people
use 'margin'?
I'd stick with margins (or padding)
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