Old 13-01-2006, 00:25   #1 (permalink)
Shiva88
Registered User
 
Join Date: Jan 2006
Location: St. Paul, MN
Posts: 1
Image anchor highlights

Hey all....
I'm new here, so I thought I'd start things off on the right foot- with a really dumb question. When using images for a link, how do I prevent IE from automatically highlighting them to show they're links?
ie, <a href="#"><img src="image.gif" /> </a>
Results in my image with a nice blue border, which looks like absolute crap. I know there has GOT to be a simple answer to this, but I sure can't figure it out... and I thought I was getting good at this too! Note this happens in IE, but not FF.

Any ideas?
  Reply With Quote
Old 13-01-2006, 01:08   #2 (permalink)
Red Cap
senior member
 
Red Cap's Avatar
 
Join Date: Sep 2005
Location: auckland, nz
Posts: 274
No worries bro we all have to start somewhere..

for a quick fix change your markup to:
<a href="#"><img src="image.gif" border="0"/> </a>

However this is bad practice, you should manipulate the presentation of your markup using CSS. Presentational markup is the devil.
Your CSS rule would be:
a img { border: none}
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8