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) unless you also want extra white-space between lines in a list item if the items wrap.


Example (simulated as this is plain text email):

* First list item

* Second list item does not fit on one line.

  Using line-height the second line would be

  a long way from the first...

* Third list item


Would the following not be better?

* First list item

* Second list item does not fit on one line but
  since we use margin, the lines stay together

* Third list item

Margin, padding and line-height are presentational attributes, which is why we use CSS for them. I don't think semantics come into it. But I may be wrong.

Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites

******************************************************
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