> I am trying to do h1's with different colors.

In that case you'd want...

h1 {
  font-weight: bold;
  /* ... */
}
h1.red { color: #f00; }
h1.green { color: #0f0; }
h1.blue { color: #00f; }

And so on.  If you wanted those color classes to be available anywhere (and
not just on H1 tags) you would just use the class notation without the
parent tag selector.

.red { color: #f00; }

In the html...

<h1>Normal</h1>
<h1 class="red">Red</h1>
<h1 class="green">Green</h1>
<h1 class="blue">Blue</h1>


-Justin



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:313278
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm

Reply via email to