I am dynamically creating some elements with jquery (id Test_element2
and so on ..)
I have CSS below -
div {id ^ = test_]: first {content: ""; Height: 100%; Width: 100%; Box-Shadow: #aaaaaa 0px 0px 10px inset; Status: Completed; Left: 0 pixels; Top: 0 pixels; Z-index: -1; }
The :: first
element is not visible when viewing the element. It only shows when already has my HTML (i.e. static content) ) Contains test_element1
.
How do I :: first
appear for my dynamic elements?
The answer is that
you can not manipulate pseudo elements such as: after And: You can not even add dynamically before using javascript or jquery.
Comments
Post a Comment