Forum Moderators: open
change:
text text text text text text text text text text
text text text text text text text text text text
1. list item
2. list item
to:
text text text text text text text text text text
text text text text text text text text text text
1. list item
2. list item
For this HTML:
<p class="follow">text text text text text text text text text text
text text text text text text text text text text</p>
<ol>
<li>list item</li>
<li>list item</li>
</ol>
That may seem a trivial quibble, but if you want to understand how to use CSS and HTML properly, you have to get away from viewing it the way you do a typewritten (or even word-processed) document.
Keep in mind that the default spacing applied to an element can be directly affected by declared line-height.
For instance: the default spacing between paragraphs may display diffently between the two following examples:
example #1
body {
font:11px/13px;
}
example #3
body {
font:13px/15px;
}
example #3
body {
font:12px/16px;
}
Test, test, test!
Learn to recognize the default spacing between elements and the methods available to control them.
Below is Tedster's example as applied to a blockquote:
p.follow {
margin-bottom:0;
}
blockquote {
margin-top:0;
}
In getting a new site to validate, I had an error on a setup like this:
<p>
<ul>
<li></li>
</ul>
</p>
The </p> tag threw an error...and then the light went on.
Tedster, have you ever thought of writing a book titled maybe:
How to solve...........
LOL! Things is, I am a crazy perfectionist with pit bull tendencies. When I want to do something, I don't let go until it's done the way I want to do it. So, even in the crazy world of coding for web pages, I have pushed very hard to get the results I envision.
A book? If things ever stop changing so fast, I might think about it!