I have the following HTML structure:
<div class='header'>...</div>
Depending on the file, this div might contain different elements. In some instances, it could look like this:
<div class='header'>
<p>
...
</p>
</div>
In other cases, it may appear as:
<div class='header'>
<p>
...
</p>
<blockquote>
...
</blockquote>
<h1>
...
</h1>
</div>
I want to create CSS that wraps all <p>
and <blockquote>
elements in a single box within the .header, excluding the h1 element. Is it possible to achieve this with one set of CSS rules or do I need separate styles for each scenario?