Reply
Clickable image and text witout border/underline?
Old 05-18-2006, 07:26 PM Clickable image and text witout border/underline?
Janet21's Avatar
Skilled Talker

Posts: 62
How can I set up an image link without the border showing arounding the image? Also, how do a set up link text without showing an underline?

Thanks!
Janet21 is offline
Reply With Quote
View Public Profile Visit Janet21's homepage!
 
When You Register, These Ads Go Away!
Old 05-18-2006, 07:39 PM Re: Clickable image and text witout border/underline?
kIDJOE's Avatar
Extreme Talker

Posts: 180
Location: Hollywood, CA
simple simple!

you just add BORDER="0" or style="border:0px;" within your img tag:

<a href="LINK"><img src="image.gif" alt="Image Alt Text" border="0"></a>

and for text:

<a href="http://www.runapp.com" style="text-decoration:none;">Web Design</a>

try to find some basic CSS information and you can go from there!
kIDJOE is offline
Reply With Quote
View Public Profile Visit kIDJOE's homepage!
 
Old 05-18-2006, 07:41 PM Re: Clickable image and text witout border/underline?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
There is a border attribute in the IMG tag that you can set to eliminate the image border when it is nested inside an anchor:

HTML Code:
<a href="#">
   <img src="image.gif" border="0" alt="" />
</a>
As for the text underline, CSS styles can solve that:

HTML Code:
TO AFFECT A SINGLE LINK:
<a href="#" style="text-decoration: none">
   Link
</a>
 
TO AFFECT ALL LINKS GLOBALLY:
<style type="text/css">
   a:link, a:active, a:hover, a:visited {
     text-decoration: none;
   }
</style>
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 09:02 PM Re: Clickable image and text witout border/underline?
Novice Talker

Posts: 12
Thank you for this question!!! It helped me as well, this was my exact problem!! What a coincidence!

Thank you so much!


~summer
summer is offline
Reply With Quote
View Public Profile Visit summer's homepage!
 
Old 05-18-2006, 09:09 PM Re: Clickable image and text witout border/underline?
Novice Talker

Posts: 12
Oh no!

It did worked but now something is wrong, the link does not work, when I click on the image it says - "you are not authorised to view this page", what happened there?

This is what I've done -

<a target= "blank" href="<A href="http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16"><a">http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16"><a href="LINK"><img src="http://swakbylil.com.au/fpdb/images/whymotherscry.gif" alt="Image Alt Text" border="0"></a>

And this is the page -
http://swakbylil.com.au/STORE/WsAncillary.asp?ID=15

Help!!!

Thank you again!
~summer
summer is offline
Reply With Quote
View Public Profile Visit summer's homepage!
 
Old 05-18-2006, 09:14 PM Re: Clickable image and text witout border/underline?
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Wireless Audio
Posts: 2,322
Name: Keith Marshall
Location: West Hartford, CT
Quote:
Originally Posted by summer
This is what I've done -

<a target= "blank" href="<A href="http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16"><a">http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16"><a href="LINK"><img src="http://swakbylil.com.au/fpdb/images/whymotherscry.gif" alt="Image Alt Text" border="0"></a>
You accidently messed up the syntax in your link:

HTML Code:
<a target= "blank" href="http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16">
   Text Link
</a>
<a href="http://swakbylil.com.au/STORE/WsAncillary.asp?ID=16">
   <img src="http://swakbylil.com.au/fpdb/images/whymotherscry.gif" alt="Image Alt Text" border="0">
</a>
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 05-18-2006, 09:37 PM Re: Clickable image and text witout border/underline?
Novice Talker

Posts: 12
Thank you so much!
~summer
summer is offline
Reply With Quote
View Public Profile Visit summer's homepage!
 
Old 05-18-2006, 10:16 PM Re: Clickable image and text witout border/underline?
Janet21's Avatar
Skilled Talker

Posts: 62
Thanks guys! And, summer, glad your question was answered as well.
Janet21 is offline
Reply With Quote
View Public Profile Visit Janet21's homepage!
 
Reply     « Reply to Clickable image and text witout border/underline?
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14272 seconds with 12 queries