Click to See Complete Forum and Search --> : CSS style problem


erdsiger
11-12-2006, 11:26 AM
Hi,

I have a CSS style problem. I would like to add custom style to the titles, which looks like this:

Firstword secondword thirdword

So the first word should have another style than the others. I could add this style to the Module name titles using this code (This is the name of the Module):

<span style="color: #ff0000;">Firstword</span> secondword thirdword


But when I try to add this to a Content Title, nothing will happen. Please help me how could I solve this problem?

Thanks in advice!

abz
11-12-2006, 11:30 AM
if you are going to be using that style often, then make a class for it so you dont have to repeat yourself.

<p><span class="firstWords">this paragraph</span> is about something</p>
<p><span class="firstWords">this paragraph</span> is about something else</p>

then add this in your stylesheet:

.firstWords{
color:#FF0000;
}

erdsiger
11-12-2006, 11:34 AM
I'm sorry, I forgot to mention I'm using Joomla. (The titles are the Joomla Module titles and Joomla Content Titles). The titles are php integers, and I can add style to these php integers, but I can't to the first word as you wrote. I reailzed, if the Name of the module is "<span style="color..." it gives the result what I want. But when I type this code to the Content Title, nothing will change.