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

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -