Climis, Tim wrote: > I've got a newsletter that includes interviews in a Q and A format. > > Usually, there's a question with a "Q:" in front of it, and then an answer > with an "A:". But I just discovered an interview with two people that goes: > "Q:" "Neal:" "Kirsten:" > > My stylesheet currently uses :first-letter to style the Q and A. But that > just styles the N and K on Neal and Kirsten, and what I'd really like to do > is style the whole word. > > A "first-word" pseudo element would work perfectly in all my cases, but it > appears that there is no :first-word pseudo element. Is there some trick I > can use as a substitute? > > ---Tim Climis > > > >
Not with CSS at the moment. An html substitute might be: <b>name</b> css might read: b {color:red; text-transform: uppercase;font-weight:normal;} ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/