What I know is that :before and :after pseudo-element is inserted before and after the children of the targeted element. Is there a way to move it outside the targeted element? And it will become it's sibling not a child of it. Literally not visually.
Asked
Active
Viewed 44 times
0
-
1Visually? or literally? – Hashem Qolami Jan 28 '14 at 16:20
-
That's a great question. Literally. – Louie Almeda Jan 28 '14 at 16:21
-
1Sorry, it is not possible to manipulate `pseudo-elements` (even) with JavaScript, because they don't exist in the DOM. – Hashem Qolami Jan 28 '14 at 16:28
-
possible duplicate of [Manipulating CSS pseudo-elements using jQuery (e.g. :before and :after)](http://stackoverflow.com/questions/5041494/manipulating-css-pseudo-elements-using-jquery-e-g-before-and-after) – Hashem Qolami Jan 28 '14 at 16:30
-
What is it you are trying to achieve? – Paulie_D Jan 28 '14 at 16:46