# Auto-creating links in CSS definition

**URL:** <https://forum.kirupa.com/t/auto-creating-links-in-css-definition/304697>\
**Category:** web dev\
**Created:** [February 12, 2010, 12:38am UTC](https://forum.kirupa.com/t/auto-creating-links-in-css-definition/304697 "2010-02-12T00:38:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)\
**Post date:** [February 12, 2010, 12:38am UTC](https://forum.kirupa.com/t/auto-creating-links-in-css-definition/304697/1 "2010-02-12T00:38:36Z")

</div>

I’m not much of a CSS guru, but is it possible to not only set a style in CSS, but also make an item a link, or at least define the href parameter in \<a\> tags?

For instance, this will have the formatting AND the newest link to the site:  
_\<span class=“mysite”\>Visit my site!\</span\>_

I would appreciate a simple “not possible” if not possible rather than being ignored. 😉
