John Dick wrote:
> How do you style the following using inline style:
>
> p:first-letter
You don't. Pseudoelemnts do not exist in markup, so you can't assign inline
styles to them.
> {
> color:#ff0000;
> font-size:xx-large;
> }
Questionable, since you don't set background, you use pure red as content
color, and you set font size using a keyword, which can mean just about
anything. But this wasn't what you really meant, is it?
> HTML is as follows:
>
> <p>
> You can use the :first-letter pseudo-element to add a special effect
> to the first character of a text! </p>
Well, you can, but not using a pseudoelement and inline CSS. Why would you
be restricted to inline CSS? But if you are, then you just need to modify
the markup by introducing a real element:
<p>
<span style="...">Y</span>ou can use the :first-letter pseudo-element to add
a special effect
to the first character of a text! </p>
Jukka
______________________________________________________________________
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/