geomydas• 1,060
@geomydas
Posted
Not really feedback but the reason why ::after and ::before don't work is this.
When you are using ::after or ::before, there is an element added inside that element. It would look like this.
<div>
::after
Lorem ipsum
::before
</div>
It won't work on void elements or elements that don't need a closing tag such as <img />
, <link />
, <hr />
as there is no space to do so
<img />
See?
Marked as helpful
0