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. Quote Link to comment Share on other sites More sharing options...
haku Posted November 7, 2009 Share Posted November 7, 2009 In what manner is it not working? Quote Link to comment 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? Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.