css - How to have pseudo-elements on pseudo-elements? -
this creates 2 pseudo elements:
.myelement {} .myelement::before, .myelement::after { content: ''; }
how add together more pseudo elements element? there way add together pseudo element pseudo element?
no, can't.
the pseudo elements defined (by w3 docs)
12.1 :before , :after pseudo-elementsas names indicate, :before , :after pseudo-elements specify location of content before , after element's document tree content.
since document tree element's defined source code, pseudo element cannot contain pseudo element, since has no tree.
css css3
No comments:
Post a Comment