CSS Image Maps
- 0
- Add a Comment
Even though this is just a cool idea, I feel that this could actually become something quite functional under the right circumstances.
Below is a sample image map that’s built entirely using CSS and XHTML. While I’ve added support for Javascript (item titles are simply displayed beneath the image), I’ve disabled it in this example — I’ve run into a bit of a problem when JS is enabled and CSS is disabled (more details below).
The initial idea for this came from a blog posting I read over at Gina Trappini’s blog, Scribbling.net. Her example was well done, but I wanted to attempt the same (or similar) using only CSS.
I then found a link to The Daily Kryogenix site (via Gina’s post) that led to an image map that made use of ligher DHTML, and made use of the
tag to display notes about a hotspot. Still, somewhat dependant on Javascript/DHTML. In the end, I decided to make use of Doug Bowman’s Sliding Doors technique combined with a definition list (
