Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS After Element to insert mailto link?

Tags:

html

css

I'm attempting to display a mailto link. Is that possible with CSS?

html

<li class="fe footer_no_link"></li>

css

.footer_column .fe:after {content:"<a href="mailto:[email protected]">[email protected]</a>"; }
like image 667
Tom Avatar asked Mar 14 '12 15:03

Tom


1 Answers

Your value wasn't appearing because the speech marks needed escaping, or changing:

.fe:after {content:"<a href='mailto:[email protected]'>[email protected]</a>"; }​

http://jsfiddle.net/Cb2ry/

Even then though, your content will just display as static text, rather than rendered.

like image 60
Curtis Avatar answered Sep 20 '22 09:09

Curtis