Mark Timothy
Mark Timothy

Reputation: 1814

cufontext tag styling not working

<cufontext style="color:red">Home</cufontext> 

I want the text color of 'Home' to be red

I tried <cufontext style="color:red !important">Home</cufontext> as well

No luck..

Upvotes: 0

Views: 687

Answers (1)

marcineck
marcineck

Reputation: 281

Have you considered using classes as cufon selectors instead? Html:

<p class='cufon red'>Hello world</p>

Css:

.red
{
    color:red;
}

And JS:

Cufon.replace('.cufon');

Working example: http://jsfiddle.net/sE39M/

Upvotes: 2

Related Questions