Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

change text color


Go to End


2 Posts   1851 Views

Avatar
ojalà

Community Member, 87 Posts

4 October 2008 at 4:47am

Hi!
I download a theme to configure the layout of my site.
I have a problem: In the theme there is $content variable that define the layout of my site and so the colour of my texts. All text is define in

#content p{
font-family:verdana;
color:#FFFFFF;
}

If I want to change only the color of 1 word in that text how Can I do?

Is difficult for me explain in English. I hope it's clear.

Avatar
justjc51

Community Member, 23 Posts

10 October 2008 at 2:31am

The reccomended way is to code Heading 6 or 5 to be the same font and size as the text you want and simply choose the Heading for the word you want diffrent. Chances are you won't need a Heading 6 or 5 for anything else.

Sorry for the late response btw.