Quote:
Originally Posted by JSWolf
Personally, I prefer not to use first. I don't like dropcaps or large first letter or smallcaps, etc. I just like normal text unless there's a reason for a style.
|
You certainly
can do it that way, and that is what I was referring to when I mentioned you can be as creative or plain/vanilla as you want.
Quote:
Originally Posted by JSWolf
I don't need a class as I can style h2 + p as needed.
|
Yes, you
can do it this way as well, but it makes the css a bit more unruly. Which do you think is cleaner?
Code:
h2 + p {}
h2 + p::first-letter {}
h2 + p::first-line {}
-OR-
p.first {}
p.first::first-letter {}
p.first::first-line {}
Also, you need to consider that there are a lot of books out there that have something inserted between the chapter head and the first paragraph, so a simple h2 + p doesn't work. Whereas, if you get in the habit of semantically labeling the first paragraph, your styling of choice will be appropriately rendered regardless of any intervening elements. Here are a couple of examples:
Quiz Time!
Can you name the Book/Author from the images above? (no cheating)