jordanwb Posted July 3, 2008 Share Posted July 3, 2008 For an example see: http://99.224.95.32/photos/album.php?album_id=1, the four pictures are underlined. How would I go about getting rid of that without moving the image tag out of the link? Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/ Share on other sites More sharing options...
rajivgonsalves Posted July 3, 2008 Share Posted July 3, 2008 I cannot see an underline what are you talking about ? you can put a border="0" in your image tag if your getting a border Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581028 Share on other sites More sharing options...
jordanwb Posted July 3, 2008 Author Share Posted July 3, 2008 It's not a border. Look at the top-left one (connect one), below it is a horizontal black line. Besides if it was a border it would go all the way around. Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581030 Share on other sites More sharing options...
rajivgonsalves Posted July 3, 2008 Share Posted July 3, 2008 I viewed it in Mozilla and Ie still can't see what you are saying can you provide a screenshot of what you mean ? Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581035 Share on other sites More sharing options...
jordanwb Posted July 3, 2008 Author Share Posted July 3, 2008 Sure thing. The same thing occurs at http://99.224.95.32/photos but not at http://99.224.95.32/photos/photo.php?photo_id=2 even though the images are in a link on both pages. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581039 Share on other sites More sharing options...
rajivgonsalves Posted July 3, 2008 Share Posted July 3, 2008 You can put a text-decoration:none style for your href that takes out the underline but it does it from both the link and the image Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581045 Share on other sites More sharing options...
jordanwb Posted July 3, 2008 Author Share Posted July 3, 2008 Or I could put a second <a> around the image with that CSS style. The line is gone. Thanks. Link to comment https://forums.phpfreaks.com/topic/113106-solved-images-in-a-link-are-underlined/#findComment-581047 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.