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
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
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