On Thursday, August 25, 2011 4:40:45 pm Kevin A. Cameron wrote:
> Now I'm confused, Tim, you had used a period between the class names...? I
> wasn't really sure of that syntax and hadn't looked into it.
>
> ".headerLink.alt2 {
> color: orange;
> font-size: 2em;
> }"
>
The key to mine is that the HTML is different.
I used <h1 class="headerLink alt2"> instead of <h1 class="headerLink
headerLink-alt2>
The selector I used means "an element with a class of 'headerLink' and a class
of 'alt2.'"
The .headerLink part is one class. The .alt2 part is a second class. Since
there's no space between them, they're classes on the same element.
Whereas .headerLink-alt2 refers to a class named headerLink-alt2.
Does that help?
---Tim
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/