Welcome Guest, Not a member yet? Register   Sign In
Inserting HTML with CSS? possible?
#1

[eluser]umbongo[/eluser]
I am trying to use CSS to insert the DIVs required before a table, for styling purposes.
Code:
table:before{content:'<div class="top_left"></div><div class="top_center"></div><div class="top_right"></div>'}
This just prints '<div...' in the middle of each table. I realise it's not normally considered good practice, but it is just styling and it would be DRY. Is there any way to get CSS to pass functioning HTML back into the page?




Theme © iAndrew 2016 - Forum software by © MyBB