Focus

This is the blog for my web design, development and marketing company, Red Kite Creative. Mostly what I'll be writing about is work-related but anything is fair game. Read more about me here...


View Debbie Campbell's profile on LinkedIn

What I'm Reading

View my bookstore














Tutorial – Clickable background images with CSS

April 9th, 2008 by debbie campbell

I wrote a blog post about this a while back but now I’m adding a full tutorial so you can actually see an example as it’s created. Learn how to turn any CSS background image into a clickable image map.

Try my tute and let me know what you think:

Clickable image maps example

I’ll be adding more CSS tutorials in the coming weeks, so check back every so often.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • E-mail this story to a friend!
  • Turn this article into a PDF!
  • Print this article!
  • Twitter
  • MySpace
  • Sphinn
  • Technorati

Posted in CSS, CSS Tutorials, Web Design | 7 Comments »

7 Responses

  1. gina Says:

    Hey this is great, but does it work on sites that are centered on the page since it’s moving around?

    thanks Debbie!

  2. gina Says:

    never mind. It works! Thank you!

  3. markei Says:

    What if you want the entire background image area clickable through css, how do you position text links on top of the (clickable) area. Will they work?

  4. debbie campbell Says:

    Markei –

    Check this tutorial: http://haacked.com/archive/2006/01/13/ClickableBackgroundImagesViaCSS.aspx

    You can use that technique to make the entire background image clickable (so it would be ‘.box1 a’ that you’re using) and then use specific elements like ‘#box-link’ to create the text links on top.

    You might have to use z-index to make the text links be on top of the background link, not sure about that at this hour…

  5. Kimberly Says:

    Thanks for this great tutorial!

  6. Oscar Says:

    Debbie,
    Thanks for that.

    That fixed an issue for me (well almost…).
    Internal links work, but wanted to link to a subdomain, is there a trick for that?

    Thanks again!

  7. Oscar Says:

    Oops! My bad…
    Left in a ‘ that caused an issue while I got a challenge with my eyes and the text size :-)

    Cheers!

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment a bit. Please stay on topic. If you submit spam or irrelevant comments, it will be deleted and your IP will be banned.