Jump to content

Need Help with Span tag


gordsmash

Recommended Posts

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

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.