Re: [css-d] style first p only if it is emphasized?

2009-05-29 Thread Matt Wilkie
Do you have control of the markup? ... If you do not control markup then, yes, you'd need scripting to add the DIV to relevant paragraphs for this approach to work. The latter I'm afraid, it's a wiki. Thanks for the feedback. best regards, -- -matt

[css-d] style first p only if it is emphasized?

2009-05-21 Thread Matt Wilkie
Dear css-discuss, how might one style the first paragraph, only if it is emphasized? can it be done without javascript? Given this html: div class=content pemAn intro paragraph which should be highlighted in some manner,/em embut the [em] might not apply to whole paragraph in a single

Re: [css-d] style first p only if it is emphasized?

2009-05-21 Thread David Hucklesby
Matt Wilkie wrote: Dear css-discuss, how might one style the first paragraph, only if it is emphasized? can it be done without javascript? [code snipped] Do you have control of the markup? I think I'd add an extra DIV around such paragraphs, styled via a selector such as this: .content