So I'm working on an HTML page with a div that looks like this:
<div class="get-this"> blah blah </div>
I've added a before pseudo-element to the div and now I want to apply a CSS style specifically to the div, not including the pseudo element.
.get-this:not(::before) {
padding-top:2px;
}
Right now, the style is being applied to the entire div. Is there a way to limit the styling only to the div itself, and exclude the pseudo element?