HighDots Forums  

Using :first-letter in an inline style

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Using :first-letter in an inline style in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paul haine
 
Posts: n/a

Default Using :first-letter in an inline style - 10-14-2004 , 05:05 PM






Hi,

Let's say I have a paragraph that's using inline styles, like this:

<p style="float: left; width: 50%;">
blah blah blah
</p>

Does anybody know how (or even if it's possible) to use something like
:first-line or :first-letter in an inline fashion?

--
'My former wife is now living with a woman of the same sex'
- Caller, Radio 4

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: Using :first-letter in an inline style - 10-14-2004 , 08:42 PM






On 14 Oct 2004 22:05:23 GMT, paul haine <paul.haine (AT) gmail (DOT) com> wrote:

Quote:
Hi,

Let's say I have a paragraph that's using inline styles, like this:

p style="float: left; width: 50%;"
blah blah blah
/p

Does anybody know how (or even if it's possible) to use something like
:first-line or :first-letter in an inline fashion?
Since pseudo-classes and pseudo-elements must be appended to the selector,
it cannot work inline. You could, however, class the p "foo" and put in
the style element:

p.foo:first-letter {color: red;}


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.