I’m quite new to pseduo elements and am struggling to get it to render HTML. Can you not render HTML in a pseudo element as the browser just seems to print a string of text out to the page rather than rendering the element?
I’ve made a codepen here:
HTML is not allowed.
What are you trying to do?
Is it something like this: http://codepen.io/codegraphics/pen/zCnfH
Yes it is mate, that exactly what I was after! What’s going on there?
> Simple answer….NO.
There is no complicated answer. CSS cannot generate HTML.
> Yes it is mate, that exactly what I was after! What’s going on there?
Unicode. Alternatively you could use Icon fonts.
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".