I want to select all p's in the .content-area
except for the p's under <footer>
. How do I do this in CSS? By the way, <footer>
is inside .content-area
In any case, this is the CSS rule I want to put on all p's under .content-area
.class p {padding-top: 20px; padding-bottom: 20px;}
EDIT: As per the comment below, the source code looks something like this.
<div class="content-area">
<img />
<p></p>
<p></p>
<footer>
<p></p>
<ul></ul>
</footer>
</div>
Can anyone help me?