Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked image has a border around it 1

Status
Not open for further replies.

LaundroMat

Programmer
Dec 2, 2003
67
BE
Hi,

When I include an image in a link, like in:
Code:
<a href=&quot;[URL unfurl="true"]www.google.com&quot;><img[/URL] src=&quot;google.gif/>Google!</a>
and having defined links like such:
Code:
a {
color:#000000;
font-weight:600;
text-decoration:none;
}
Opera does not show a border around the linked image, but IE does... How comes? and how I can prevent this?
 
this brings back memories, use

<img border=&quot;0&quot; src=&quot;google.gif&quot;/>
 


[tt]

buffalo.gif height="73px" width="43px"

 
Heh, I thought it had been asked before, but none of my searches yielded the result I wanted.

Thanks!
 
I'd use one of the following:
Code:
<style type=&quot;text/css&quot;>
 img { border: none; }
</style>

or

<style type=&quot;text/css&quot;>
 a img { border: none; }
</style>
First example says every <img> tag will have no border. Second says that every <img> tag within the <a> tag, i.e. every picture link. Hope it helps.
 
LaundroMat,

I wasn't taking the p**s, it's just been so long since I've heard that one asked.

Thanks for the star

Smon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top