allisonwrote
05-20-2008, 05:59 PM
hi all,
i have a header that links back to the homepage when clicked, but i want to add a hotspot so that users can click on the part that says "click to email". (see here: http://www.allisonwrote.com/aussie)
i thought about an image map, but shouldn't headers always be background images inside a div so that they don't need to load with each new page?
i found some css code that could work, but i have no idea how to implement it. it looks like this:
#header a.headerimagelink{
border: 1px solid red;
display: block;
width: 100px;
height: 100px;
position: absolute;
left: 100px;
top: 100px;
text-indent: -9999em;
}
right now, for my header i have this:
CSS:
#header{
width: 810px;
height: 150px;
position: relative;
margin: 0 auto;
background-color: #008800;
background-image: url(http://www.allisonwrote.com/images/draft.jpg);
}
HTML:
<div id="header" title="return to home" style="cursor:pointer;" onclick="window.location='/index.html';">
</div>
i have a header that links back to the homepage when clicked, but i want to add a hotspot so that users can click on the part that says "click to email". (see here: http://www.allisonwrote.com/aussie)
i thought about an image map, but shouldn't headers always be background images inside a div so that they don't need to load with each new page?
i found some css code that could work, but i have no idea how to implement it. it looks like this:
#header a.headerimagelink{
border: 1px solid red;
display: block;
width: 100px;
height: 100px;
position: absolute;
left: 100px;
top: 100px;
text-indent: -9999em;
}
right now, for my header i have this:
CSS:
#header{
width: 810px;
height: 150px;
position: relative;
margin: 0 auto;
background-color: #008800;
background-image: url(http://www.allisonwrote.com/images/draft.jpg);
}
HTML:
<div id="header" title="return to home" style="cursor:pointer;" onclick="window.location='/index.html';">
</div>