In CSS, there are pseudo elements like "before" and "after". That creates virtual elements before or after an element.
Container pseudo element?
Is there a "container" pseudo element?
Problem example 1:
I need to create 15 borders around an element (I know this particular example can be done by using box-shadow).
Problem example 2:
I need to create 15 transparent background colors on top of eachother.
A lot of unnecessary markup
I know that is possible by adding containing divs, but that creates a lot of unnecessary markup.
::beforeand::afterare pseudo-elements, not pseudo-classes; and what do you mean by 'container' pseudo-class (I assume you mean pseudo-element, as with the other two)?containerpseudo class work?::beforeand::aftercreate virtual elements before and after the content of an element, not the element itself - stackoverflow.com/questions/5362811/…