Just wondering if it’s possible somehow to make the CSS content property insert html code instead string on :before or :after an element like:

.header:before{
  content: '<a href="#top">Back</a>';
}

this would be quite handy…It could be done through Javascript but using css for this would really make lives easier 🙂

5 Answers
5

Leave a Reply

Your email address will not be published. Required fields are marked *