Line spacing in numbering
I want to know if there is any way to define the line spacing, or a extra blank line between two lines in numbering, apart from adding
in front of the
Antonio
Web Development
I want to know if there is any way to define the line spacing, or a extra blank line between two lines in numbering, apart from adding
in front of the
Antonio
by dtds
You could use a CSS style like this:
li {
font-size: 12px;
margin-bottom: 12px;
}
Other properties like line-height will work fine too.
by pioneering
I recommend:
li
{
padding-top: 1em;
}
Which will give spacing the size of the capital "M" regardless of font size. There's
already padding at the bottom of the last element.
Also, this will work for both IE and Mozilla, although I've never tested it on Opera. Margins in list item elements generally don't render well in IE.
(I also recommend the BSD brace style, as opposed
to the K&R (aka OTB) brace style, but that's another discussion entirely!)
This discussion is closed to new replies.
Sort by Trending