Sep. 11th, 2008

tigertoy: (Default)
What is the simplest/best way to control the line spacing of HTML lists?  I'm specifically talking about putting a list in an LJ entry, so I don't have a separate style sheet I can reuse and I want something concise.  Specifically, I want to avoid having any extra blank lines before and after the list and between the items.

example behind cut to spare your friends page )

Also: do best practices include a </li> at the end of each item?  I thought all tags were supposed to have ends, but the examples on the W3C web site don't use </li>. Hah, I answered a part of my own question: if I leave out the </li> it doesn't put a space between the items, but it still puts extra lines at the beginning and end. But I want to know if leaving out the </li>s is going to screw up somebody else's browser. Or if putting them in does.

Yes, I did spend some time trying to look this up myself, but I don't want to spend all day learning HTML.  So please don't point me at a reference web site unless you can point me to a specific page on that web site that answers my question.

Profile

tigertoy: (Default)
tigertoy

January 2026

S M T W T F S
    12 3
45 678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags