2 replies [Last post]
webster12345
webster12345's picture
User offline. Last seen 1 year 38 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+1
Joined: 2010-07-23
Posts: 25
Points: 35

Hi all

I followed a youtube tutorial and have succesfully created an image map on its own. However what im finding difficult to do at the momment is to be able to position the imagemap in the header as that is where i would like the imagemap to appear. Not sure what the best way is to integrate the code. the website has been built within a container tag, i have tried replacing the 'imagemap' word with 'header' but still no joy.

This is my image map code for the css

#imagemap ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
 
 
	height: 163px;
	width: 1023px;
	position: relative;
}
#imagemap li {
	border: medium solid hidden;
 
}
li#b {
	position: absolute;
	left: 92px;
	top: 47px;
	width: 174px;
	height: 84px;
}
li#g {
	position: absolute;
	left: 395px;
	top: 55px;
	width: 135px;
	height: 56px;
}
li#c {
	position: absolute;
	left: 735px;
	top: 53px;
	width: 142px;
	height: 60px;
}
li#b a {
	display: block;
	height: 84px;
	width: 174px;
}
li a em {
	display: none;
}
 My html looks like this 
 
<div id="imagemap">
  <ul>
    <li id="b"><a href="http://www.bbc.co.uk/"><em>bbc site</em></a></li>
    <li id="g"><a href="www.guardian.co.uk"><em>guardian site</em></a></li>
    <li id="c"><a href="www.cnn.com"><em>cnn site</em></a></li>
  </ul>
</div>

This is a link to the site where i would like to integrate the code
http://www.webster12345.zxq.net/home.html

CupidsToejam
CupidsToejam's picture
User offline. Last seen 17 weeks 6 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2008-08-15
Posts: 2634
Points: 1552

put the image map div inside

put the image map div inside your header div, and see what happens. if you need further help, plz update your link with the image map code in place. also, get rid of all those nasty empty paragraph tags, use css to create the layout.


First basic few steps in building a webpage
1. Gather and collect content.
2. Organize the content into meaningful semantic valid HTML
3. Design the prototype
4. Style using CSS

http://www.pixelbehavior.com

webster12345
webster12345's picture
User offline. Last seen 1 year 38 weeks ago. Offline
rank Regular
Regular
Timezone: GMT+1
Joined: 2010-07-23
Posts: 25
Points: 35

Hi many thanks, i do have it

Hi

many thanks, i do have it working.

Cheers