/ Published in: CSS

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
***** CSS ***** #logotipo {width:150px; height:60px; background:url('../images/logotipo.png') no-repeat} #logotipo h1 a {margin:0; padding:0; width:150px; height:60px; display:block; text-decoration:none; background:url('../images/logotipo.png') 0 0 no-repeat} #logotipo h1 a:hover {background-position:0 -60px} #logotipo h1 a span {position:relative; z-index:-1} ***** HTML ***** <div id="logotipo"><h1><a href="index.html" accesskey="1" tabindex="1"><span>Nombre de la web</span></a></h1></div>
Comments
