Alright I made a style:

p.one:first-letter {
color:#FF0000;
}

As my first paragraph class is called "one" then I put this inline:

<p.one:first-letter>Welcome to....

The "W" in welcome did not turn red


Jai Pandya wrote:
> Do you mean to say that you have separate classes of paragraphs
> already... and then you want to style them differently?
>
> So that must not be a big trouble. Define rules for each of the class
> with :first-letter pseudo class. Something like this:
>
> p.class-name:first-letter{ /* Rules go here */ }
>
> That will probably do the job for you. Explain, if that was not the
> intended meaning.
>
> -Jai
>
> On Sun, Jul 20, 2008 at 10:45 AM, Christopher <[EMAIL PROTECTED]> wrote:
>   
>> How do you apply the :first-letter pseudo element to separate class of
>> paragraphs, I have to class <p> tags but I want to assign separate
>> :first-letter pseudo element to each
>> <p> class ?
>>
>> ______________________________________________________________________
>> css-discuss [EMAIL PROTECTED]
>> http://www.css-discuss.org/mailman/listinfo/css-d
>> List wiki/FAQ -- http://css-discuss.incutio.com/
>> List policies -- http://css-discuss.org/policies.html
>> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>>
>>     
>
>   

-- 

*Christopher* - the creative sheep

*animator*///motion graphics artist/\\*web dev*

web: www.walkfar.ca <mailto:[EMAIL PROTECTED]> email: 
[EMAIL PROTECTED] <http://www.walkfar.ca/>

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to