On 4/9/09 3:35 PM, "David Laakso" <da...@chelseacreekstudio.com> wrote:
> 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 You can try using :first-line [1]. Probably use a <br/> to separate the lines? Not sure if it will work though (Certainly not semantic!). [1] http://reference.sitepoint.com/css/pseudoelement-firstline ______________________________________________________________________ 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/