- Joined
- Oct 14, 2010
- Messages
- 28
- Reaction score
- 1
- Points
- 3
- Your Mac's Specs
- MacBook Air 10.7, iMac 21" 10.7
Hi, I've been building a small website for one of my classes at the school I go to as a project. I'm using a plain text program on a mac. I want to be able to position the image in a certain spot on my page and map the image at the same time (I can do each of these independently without combining them). When I try combining the two pieces of code, the image appears in the correct spot, but with no mapping. Here is the code put in the head of the page:
Here is the code in the body and div tags:
Any help is greatly appreciated, thanks in advance! ;D
Code:
<!DOCTYPE html>
<head>
<title>blank</title>
<style type="text/css">
#letterh
{
position: absolute;
left: 400px;
top: 50px;
padding: 0px;
}
#letteri
{
position: absolute;
right: 350px;
top: 50px;
padding; 0px;
}
</style>
</head>
Here is the code in the body and div tags:
Code:
<body bgcolor="black" link="black" alink="black" vlink="black">
<div id="#letterh">
<img src="h.png" usemap="#h" width="300" height="300" alt="Letter H">
<map name="h">
<area shape="rect"
coords="40,208,329,270"
nohref="nohref"
title="This is the bottom of the I" />
<area shape="default"
nohref="nohref"
title="This is not the bottom of the H" />
</map>
</div>
</body>
</html>