- Messages
- 1,682
- Reaction score
- 32
- Points
- 48
http://www.webmasterworld.com/forum83/100.htm
I've been around CSS for quite a while, and I have never seen anything like p + p
is it a legit css, is so, can somebody link/tell me more about it
p + p { margin-top: 0.5em; }
The first one sets the top margin of all paragraphs to 1/2 space (more or less). The second one does that for only paragraphs that follow other paragraphs (i.e., it doesn't set the margin of the first paragraph on the page, or the first paragraph in a section).
I've been around CSS for quite a while, and I have never seen anything like p + p
is it a legit css, is so, can somebody link/tell me more about it