<!DOCTYPE html>
<html lang="en-US">
<head>
<title>CSS Alternative for an Image Map</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #ABC;
color: #123;
font-family: verdana;
}
h1 {
margin-bottom: 20px;
text-align: center;
}
#cssimagemap {
background-image: url(images/photos/hikers.jpg);
width: 640px;
height: 631px;
position: relative;
}
#cssimagemap a {
display: block;
border: 5px solid #333;
position: absolute;
}
#cssimagemap a:hover {
border: 5px solid #FF2;
}
a#hiker1 { width: 150px; height: 400px; left: 220px; top: 100px; }
a#hiker2 { width: 60px; height: 170px; left: 400px; top: 100px; }
a#hiker3 { width: 50px; height: 150px; left: 510px; top: 150px }
#cssimagemap figcaption {
position: absolute;
top: 0px; left: 0px;
width: 640px; height: 40px;
line-height: 40px;
text-align: center;
font-weight: bold;
background-color: rgba(255,255,255,.6);
}
</style>
</head>
<body>
<h1>CSS Alternative for an Image Map</h1>
<div id="cssimagemap">
<figcaption>
Photo provided by Michael (aka moik) / ex_magician on Flickr</figcaption>
<a href="http://www.yahoo.com/" id="hiker1"></a>
<a href="http://www.bing.com/" id="hiker2"></a>
<a href="http://www.google.com/" id="hiker3"></a>
</div>
</body>
</html>
background-image: url(images/photos/hikers.jpg);
it still doesn't work.
tried:
background-image: url(http://www.sixminutessmarter.com/demofiles/webdev/images/photos/hikers.jpg);
&
background-image: http://www.sixminutessmarter.com/demofiles/webdev/images/photos/hikers.jpg;