CSS Question
On page 58 (Ch. 3), I see an example of CSS:
h1 .special {
styles go here...
}
I typed in the following code:
<h1 class="special">Hello There</h1>
But it didn't work.
h1.special { } seemed to work, but not a space separator.
What did I do wrong?
Revision: Okay, I think I figured this one out. It's inheritance.
Question: would there ever be any elements that are within a header element? A <span>?
Or is h2 .special a bad example whereas p .special would make more sense?
Last edited by papadan; April 22nd, 2017 at 11:42 PM..
Reason: I think I figured it out.
|