...

View Full Version : Image Links



Papa
12-15-2007, 02:58 PM
I know this is really simple and i've read corrections for the problem before but I cannot find them for anything.

As most sites go, linking the logo to the homepage is a necessity. However, when I link the site with the simple command


<div id="logo"><a href="index.html"><img src="images/Kirby_Web.jpg" width="319" height="112" /></a></div>

it makes a blue link style appear on the outside of the image on rollover. I have other links, throughout the site, that I want to keep the rollover feature. Can I turn it off for just the linked image?

abduraooft
12-15-2007, 03:10 PM
Add CSS

a img{
border:none;
}

Papa
12-15-2007, 03:11 PM
Thank you!:)

oesxyl
12-15-2007, 03:12 PM
I know this is really simple and i've read corrections for the problem before but I cannot find them for anything.

As most sites go, linking the logo to the homepage is a necessity.
why?


However, when I link the site with the simple command


<div id="logo"><a href="index.html"><img src="images/Kirby_Web.jpg" width="319" height="112" /></a></div>

it makes a blue link style appear on the outside of the image on rollover. I have other links, throughout the site, that I want to keep the rollover feature. Can I turn it off for just the linked image?


<div id="logo"><a href="index.html"><img style="border: none;" src="images/Kirby_Web.jpg" width="319" height="112" /></a></div>

a better idea is to move style attribute in your css file



div#logo img { border: none; }



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum