Reputation: 45
I would like to format my css such that each relevant element is within their own class, including the class's pseudo-elements. Currently, the pseudo-element is formatted this way.
element {
...
}
element::after {
...
}
Is it possible to format the above into this format? Basically nesting the pseudo-element inside it's parent element.
element {
...
element::after {
...
}
}
Upvotes: 0
Views: 285