gordsmash Posted November 7, 2009 Share Posted November 7, 2009 Hello, Im trying to use a span tag to put my hyperlink with an underline so that my picture right next to it doesn't have the underline. Although it is not working in Firefox. I have tested it in Internet Explorer and it works perfectly but Firefox doesn't seem to render it right. Here is the code that I am using. <a class="one"href="login.php"><img src="../assets/key_go.png" border="0" text-decoration="none"/><span style="text-decoration: underline;">Login</span></a> Any answers would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/180675-need-help-with-span-tag/ Share on other sites More sharing options...
haku Posted November 7, 2009 Share Posted November 7, 2009 In what manner is it not working? Link to comment https://forums.phpfreaks.com/topic/180675-need-help-with-span-tag/#findComment-953260 Share on other sites More sharing options...
gordsmash Posted November 7, 2009 Author Share Posted November 7, 2009 Well the span tag that i put down is only supposed to put an underline underneath the text and not the image. But when i run it in firefox it puts the underline underneath both the text and the image. Is there something wrong with the code i put into it or does firefox screw up with the span tags? Link to comment https://forums.phpfreaks.com/topic/180675-need-help-with-span-tag/#findComment-953263 Share on other sites More sharing options...
haku Posted November 8, 2009 Share Posted November 8, 2009 a { text-decoration:none; } a span { text-decoration: underline; } (You need to put the text-decoration:none on the a tag, not the img) Link to comment https://forums.phpfreaks.com/topic/180675-need-help-with-span-tag/#findComment-953441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.