CSS Adjacent sibling selectors
CSS Adjacent sibling selectors
HTML
<p>This is <em>em text</em> and more <strong>strong text</strong></p>
<p>This is <strong>strong text</strong> and more <em>em text</em></p>
CSS
em + strong {color: green; }
<p>This is <em>em text</em> and more <strong>strong text</strong></p>
<p>This is <strong>strong text</strong> and more <em>em text</em></p>
em + strong {color: green; }