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 div p {} If you do not control markup then, yes, you'd need scripting to add the DIV to relevant paragraphs for this approach to work. Cordially, David -- ______________________________________________________________________ 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/