View Single Post
  #3 (permalink)  
Old Nov 18th, 2007, 15:31
Stuart Stuart is offline
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS image link attributes

It's better to do this with css. Img borders will not override the css-determined border. Put this into your css:
Code: Select all
a img {
border: 0;
}
Or, if you do not want this to apply to all anchored images, only a few, use the following:
Code: Select all
img.unstyled {
border: 0;
}
And put this into your img tag:
HTML: Select all
<img src="mypicture.gif" class="unstyled" />
That should do it...

Cheers,
Stuart
Reply With Quote