View Full Version : HTML links border pictures

02-06-2012, 10:07 PM
I was wondering if anyone could tell me how to get the links not to border pictures in a html document. I know this is probably a newb question but I am new to this and am trying to learn from the ground up. Any help will be appreciated. Thank you in advance.

Here's an example of what I'm talking about.

a href="http://www.youtube.com" img src="images/youtube.png"

I took the open and close tags out because I didn't know if you can post them in here or not. The link shows up around my youtube picture. I was wondering if there's something I can type in there to make that not happen.

02-07-2012, 12:15 AM
In your css, add this style:

a img {

That will remove that border that shows around any image that is a link.

02-07-2012, 05:53 PM
What if I'm not saving as .css but .html instead? Is there a way to make it happen in the .html saved file or should I save as .css and forget HTML?

02-09-2012, 04:18 PM
Thank you, gribs100. That fixed it. I had to learn a little bit of css to understand it but it works now. Many thanks.