Problems making an image into a link?

Amanda

New member
I've set the header of my page as a div with a defined width and height. Inside that div is an image (logo) with the same width and height as the div. When I preview in a browser, everything looks fine. The problem happens when I set that image as a link to the home page. The layout becomes messed up. It's like as if adding the link has add some extra height to the image, even though I've set borders to 0. I'm using Dreamweaver CS4 if that makes any difference.

The html is
<div id="top"> <a href="../index.html"><img src="../Images/Muse-Banner-changed.jpg" alt="Muse Interiors" width="780" height="125" border="0" /></a>
</div>

The CSS is
#top {
width: 780px;
height: 125px;
}

Any ideas?
 
Back
Top