Turning a background image into a clickable link

/ Published in: CSS
Save to your folder(s)

Copy this code and paste it in your HTML
  1. <a href="http://xavisys.com" title="Professional WordPress Development" id="xavisys-logo">Xavisys Website Development</a>
  4. #xavisys-logo {
  5. background-image:url(/wp-content/uploads/2009/11/email_logo.gif);
  6. display:block;
  7. height:58px;
  8. text-indent:-9999px;
  9. width:200px;
  10. }

URL: http://xavisys.com/css-trick-turning-a-background-image-into-a-clickable-link/

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.