Add HTML code using CSS -


html

<div id="mydiv"></div> 

i want add html code div (see following result want) using only css

<div id="mydiv"><a href="#">lorem</a></div> 

i think :after , :before not helpful here!

css not html. not possible achieve css not markup language.

just add can add content not element using :before or :after pseudo-element. refer specs


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -