/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
HTML: <h1 id="header"> <a href ="#">header-title</a> </h1> CSS: #header a { background: url("xyz.gif") no-repeat scroll 0 0 transparent; text-indent: -9999px; /* move link far away so it appears "invisible" to users but still readable to robots */ float: left; /* only if needed */ display: block /* change inline element to block element */ height: 10px; /* apply size to block element */ width: 10px; }