Image hyperlinks

This is a discussion on "Image hyperlinks" within the Web Page Design section. This forum, and the thread "Image hyperlinks are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 27th, 2007, 14:48
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Image hyperlinks

How do i remove the coloured border around images when i use them as a hyperlink?

I have tried everything i can think of and they still won't dissppear

here is the HTML link

Code: Select all
 
<a class="img" href="souvenirs/anubis.htm"><img src="images/moreinfo.gif" alt="More info" /></a>
here is the CSS

Code: Select all
 
a.img:link, a.img:visited {
   text-decoration: none;
   border: none;
}
a.img:hover {
   text-decoration: none;
   border: none;
}
Reply With Quote

  #2 (permalink)  
Old Mar 27th, 2007, 16:39
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image hyperlinks

just

Code: Select all
img {
  border: 0;
}
Reply With Quote
  #3 (permalink)  
Old Mar 27th, 2007, 19:21
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
Re: Image hyperlinks

Thanks.....all works now
Reply With Quote
  #4 (permalink)  
Old Mar 27th, 2007, 22:48
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image hyperlinks

I could be wrong on this, but I think IE still puts a border around them. Don't shoot me if I'm wrong, but this will ensure there is no border:

Code: Select all
a img {
    border: 0;
}
Reply With Quote
  #5 (permalink)  
Old Mar 28th, 2007, 13:17
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image hyperlinks

I never had this problem Ryan? Maybe older IE's? (older than IE6)
Reply With Quote
  #6 (permalink)  
Old Mar 29th, 2007, 01:46
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Image hyperlinks

Yeah, I'm thinking it's 5 or 5.5. I could be wrong, though.
Reply With Quote
Reply

Tags
hyperlinks, image

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with changing colour of hyperlinks sing2trees Web Page Design 10 May 22nd, 2007 18:08
Making some hyperlinks that are none downloadable/right-clickable acrobat Web Page Design 14 May 6th, 2007 06:46
How to float 2 image hyperlinks on same line AdRock Web Page Design 6 Apr 2nd, 2007 14:30
Using images as hyperlinks AdRock Web Page Design 2 Aug 30th, 2006 21:03
Changing properties of hyperlinks? tom_king88 Web Page Design 7 Jul 7th, 2006 19:58


All times are GMT. The time now is 21:17.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43