Removing the linked images border

asked Sep 20, 2013 in General by sally23 (1,250 points)
Hi there
I am fairly new to CSS and I am having a hard time trying to remove a border that exists around a linked image or an underlined linked text on my webpage.  I tried using this code : img { border: none; }
in the my CSS but that didn’t do anything. Can anyone please help me do this?
Your advice is highly appreciated


1 Answer

0 like 0 dislike
answered Sep 20, 2013 by SmartHost (9,060 points)
For individual image try adding this code
<img src="image.gif" width="50" height="50" border="0">
For all images try adding  this code in your tyle.css
{  border-style: none;
a img {border: none;}