How can I remove the border from image links?

  • thevirus
  • Banned
  • Banned
  • thevirus
  • Posts: 35

Post 3+ Months Ago

Hi I want to make one of my images a link but I dont want to make a border around it. I tried to fix this using css a {text decoration-none}
I dont know if thats exactly right but the one I had on my site is but it is not removing the line around the image. Can this be fixed with html or does it need to be css?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Code: [ Select ]
<a href="link.html"><img src="image.gif" border="0"></a>


:wink:
  • thevirus
  • Banned
  • Banned
  • thevirus
  • Posts: 35

Post 3+ Months Ago

WOW that simple? Yup it works just tried it thanks for your help that will be usefull in future uses will have to remember it :) thanks again
  • Geekette
  • Proficient
  • Proficient
  • User avatar
  • Posts: 482
  • Loc: The Land of NeverWinter (FL)

Post 3+ Months Ago

Heh, no problem. :icontongue:
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

You can also do it with CSS:

Code: [ Select ]
img {border: none}


// moved to web design somewhat belatedly
  • gilray4
  • Novice
  • Novice
  • gilray4
  • Posts: 17
  • Loc: Hawai'i

Post 3+ Months Ago

not to mention you can also (maybe not applicable to this scenario) put an image as the link bg something like this
a{
background: url(images/myniceimage.gif)
top left no-repeat;
}
  • gilray4
  • Novice
  • Novice
  • gilray4
  • Posts: 17
  • Loc: Hawai'i

Post 3+ Months Ago

not to mention you can also (maybe not applicable to this scenario) put an image as the link bg something like this
a{
background: url(images/myniceimage.gif)
top left no-repeat;
}

which is a nifty way to work into imaged rollovers

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 78 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.