Tuesday, December 14, 2010

Turning a background image into a clickable link

Now all we need to do is hide the text. This can be done using “text-indent” and indenting the text completely off the screen like this:


#xavisys-logo {
background-image:url(/wp-content/uploads/2009/11/email_logo.gif);
display:block;
height:58px;
text-indent:-9999px;
width:200px;
}

No comments:

Post a Comment