Guest aztechx Posted March 25, 2006 Share Posted March 25, 2006 how do i put a link on a picture without having a weird color border around it?? Link to comment Share on other sites More sharing options...
Jonas Posted March 25, 2006 Share Posted March 25, 2006 <a href="#"><img src="path/image.extension" style="border-style: none;" /></a> Link to comment Share on other sites More sharing options...
vchris Posted March 25, 2006 Share Posted March 25, 2006 Jonas, couldn't you just use <img src="image.jpg" border="0">?Is the border attribute deprecated? I don't know remember seeing that... Link to comment Share on other sites More sharing options...
SmokingMan Posted March 25, 2006 Share Posted March 25, 2006 Yes, the border attribute has been deprecated. I always use CSS now to remove that lovely blue border. Link to comment Share on other sites More sharing options...
vchris Posted March 26, 2006 Share Posted March 26, 2006 ah! I never read that or heard of that before. Thanks for the info SmokingMan ! So now you can just add this in your stylesheet: img { border-style: none; } And all images will have the border removed. Link to comment Share on other sites More sharing options...
Jonas Posted March 26, 2006 Share Posted March 26, 2006 ah! I never read that or heard of that before. Thanks for the info SmokingMan ! So now you can just add this in your stylesheet:img { border-style: none; } And all images will have the border removed. <{POST_SNAPBACK}> Not quite that simple I think.Default border for img is none. The border comes when you have a link image, then the border is used as text-decoration on a text-link, since a simple underline on an image wouldn't show much. So to declare the style in the head section instead of with a style attribute, you would write:a img {border-style: none;} Link to comment Share on other sites More sharing options...
vchris Posted March 27, 2006 Share Posted March 27, 2006 ah I see! Thanks for the info Jonas. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now