CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
CSS Combat
image link
AlCapone
Permalink to comment
#
June 2009
Hi, i have a png image which is also a link to another page - <a href..... But in the browser it has a purple border around it, how to i remove this?
I have tried, border: none; and border: 0px;
If, in the stylesheet i put, a { color:white; }, it is affected by it and changes from purple to white, but i cant get it to disappear.
Any Help?
Many Thanks
Chris Bull
Robskiwarrior
Permalink to comment
#
June 2009
a img { border:none; }
let me know if it works :)
AlCapone
Permalink to comment
#
June 2009
Nope, but if i put, a img {border:dashed;} it goes dashed so it is being referanced, just not taking affect to border:none....
Any more ideas - And thanks for the reply
AlCapone
Permalink to comment
#
June 2009
Woooo, nevermind, i needed to apply the boreder none to the image class rather than the a class.
Add a Comment
I have tried, border: none; and border: 0px;
If, in the stylesheet i put, a { color:white; }, it is affected by it and changes from purple to white, but i cant get it to disappear.
Any Help?
Many Thanks
Chris Bull
let me know if it works :)
Any more ideas - And thanks for the reply