/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <h1><a href="http://www.jennifer-jones.co.uk/" title="Jennifer Jones"><span><img src="<?php bloginfo('template_directory'); ?>/images/logo.jpg" width="676" height="160" alt="Jennifer Jones logo" /></span>Jennifer ☆ Jones</a></h1> CSS: h1 {} h1 a { position: relative; width: 331px; height: 100px; display: block; font-size: 32px;} h1 a span { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url(images/logo.png) top left no-repeat; cursor: pointer;} h1 a span img { display: none;}
Comments
