I want to convert a rel
content into a Font Awesome CSS icon, so I won't have to write 20 lines for a simple menu.
Maybe some code would make it easier to understand.
I tried to do this:
a:before {content: "\(" attr(rel) ")"; font-family: 'FontAwesome';}
Basically I am trying to convert the value inside the rel
and convert it to a working CSS rule.
So the link looks like this:
<a href="http://www.example.com" rel="f291">Example</a>
The end result should look something like:
a:before {content: "\f291")"; font-family: 'FontAwesome';}