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
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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.