Suppose I had the following HTML code snippet:
<div class="container">
<p>blah blah blah</p>
</div>
Can we apply two :before pseudo classes to that same container div?
For example, like this:
.container:before{
content: " ";
position: absolute;
top: 0;
left: 0;
width: 31%;
height: 61%;
background-color: black;
}
.container:before{
content: " A String ";
position: absolute;
top: 0;
left: 0;
background-color: black;
}
Disregarding the specific CSS properties used, the main question is whether it would be valid to insert two pseudo classes before the container div. If not, is there a workaround to achieve this?