AardvarkBusiness.net - Business Search Engine AardvarkBusiness.net - Business Search Engine



 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

     

How can I get rid of ugly line surrounding link image?

 
 
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum
View previous topic :: View next topic  
Author Message
foundThroughAdminSig
President
President


Joined: 24 Apr 2004
Posts: 6491

7611 ants

PostPosted: Tue Aug 07, 2007 1:35 pm    Post subject: How can I get rid of ugly line surrounding link image? Reply with quote

Suppose that I have the following code:
Code:

<a href="home/"><img src="img/index.jpg" alt="" style="display: block;"></a>

This image becomes a link. But ... this code creates an ugly line surrounding this image. How can I get rid of it?
_________________
Online Education :: Training Forum
Chat about health ... Finance Books
Back to top
View user's profile Send private message Visit poster's website
judel
PA
PA


Joined: 30 Jul 2007
Posts: 29

32 ants

PostPosted: Tue Aug 07, 2007 5:17 pm    Post subject: Reply with quote

yes, that can be ugly, and I always use the border=0 to get rid of it. You would put that right after the image link. Going by your code, it would then become:

Code:
<a href="home/"><img src="img/index.jpg" border=0 alt="" style="display: block;"></a>

_________________
Jude
Back to top
View user's profile Send private message
gamer1
Executive PA
Executive PA


Joined: 26 Jul 2007
Posts: 75

0 ants

PostPosted: Wed Aug 08, 2007 9:10 am    Post subject: Reply with quote

Yes, I think Judel is right.

Some website software like Microsoft Frontpage automatically do this for you.
_________________
WIInnipeg.ca - The self proclaimed offical forum for Wii gamers in Winnipeg.
Back to top
View user's profile Send private message
judel
PA
PA


Joined: 30 Jul 2007
Posts: 29

32 ants

PostPosted: Tue Aug 21, 2007 8:58 pm    Post subject: Reply with quote

Really? LOL...I never noticed Frontpage doing that for me! Confused
_________________
Jude
Back to top
View user's profile Send private message
leoludwig
PA
PA


Joined: 11 Oct 2007
Posts: 28
Location: Milton Keynes
31 ants

PostPosted: Fri Oct 12, 2007 1:10 pm    Post subject: Reply with quote

as you are using inline style why not have
Code:
<a href="home/"><img src="img/index.jpg" alt="" style="display:block; border:0"></a>


or even better: in your stylesheet have

img { border:0; }

and it will remove the border from any image on your site.

[hr]
sorry just notice how old this thread was
_________________
Accountant Websmiths | Web Design Milton Keynes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AardvarkBusiness.net Forum Index -> Programming Forum All times are GMT + 1 Hour
Page 1 of 1

 
Google
 
Business Forum Sport Forum Travel Forum


Powered by php B B © 2001, 2002 php B B Group

AardvarkBusiness.net Business Search Engine & Directory