...

View Full Version : class color not working



rfresh
04-11-2009, 04:32 PM
I can't see why my code won't make my font red and italic? I must be missing something really easy here?



.host_data_changed {color:#FF0000; font-style: italic}




<span class="host_data_changed"></span>Test</span>

abduraooft
04-11-2009, 04:36 PM
<span class="host_data_changed"></span>Test</span> Any clues? :)

Excavator
04-11-2009, 05:12 PM
I can't see why my code won't make my font red and italic? I must be missing something really easy here?

Sometimes when you're stumped like that, the validator will find your mistake for you. Like it says in the sig below, use it like a spellchecker.

CaptainB
04-11-2009, 06:07 PM
Also notice this:


.host_data_changed {color:#FF0000; font-style: italic;}

Apostropartheid
04-12-2009, 06:01 PM
The ending semi-colon is not required when the property is the final one of a selector. If I were to point something out, it would be that color's value can be shortened to #f00.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum