You are viewing our Forum Archives. To view or take place in current topics click here.
Need help with linked images!
Posted:
Need help with linked images!Posted:
Status: Offline
Joined: Jan 31, 20159Year Member
Posts: 13
Reputation Power: 0
So I am making images with links in them and when I preview the webpage I get tiny underscores between each image. I was wondering what I do I have to do to get rid of them.
Here is my code
And this is what I see on the webpage.
[ Register or Signin to view external links. ]
Here is my code
<div>
<a href="http://www.facebook.com/share.php?u=http://cdesparky.com/" target="_blank">
<img src="/img/facebook.png">
</a>
<a href="https://plus.google.com/share?url=http://cdesparky.com/" target="_blank">
<img src="/img/google+.png">
</a>
<a href="http://www.twitter.com/home?status=http://cdesparky.com/" target="_blank">
<img src="/img/twitter.png">
</a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=http://cdesparky.com/" target="_blank">
<img src="/img/linkedin.png">
</a>
</div>
<a href="http://www.facebook.com/share.php?u=http://cdesparky.com/" target="_blank">
<img src="/img/facebook.png">
</a>
<a href="https://plus.google.com/share?url=http://cdesparky.com/" target="_blank">
<img src="/img/google+.png">
</a>
<a href="http://www.twitter.com/home?status=http://cdesparky.com/" target="_blank">
<img src="/img/twitter.png">
</a>
<a href="http://www.linkedin.com/shareArticle?mini=true&url=http://cdesparky.com/" target="_blank">
<img src="/img/linkedin.png">
</a>
</div>
And this is what I see on the webpage.
[ Register or Signin to view external links. ]
#2. Posted:
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
Status: Offline
Joined: May 30, 201014Year Member
Posts: 438
Reputation Power: 49
a img
{
border: 0 none;
}
a
{
text-decoration: none;
}
Although simply targeting anchor tags will mean that any hyperlinks you have will have their underlines removed, so you could target a class instead and add it to your anchor tags.
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Jan 31, 20159Year Member
Posts: 13
Reputation Power: 0
Thank you! I've needed to fix this for a long time!
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Nov 16, 201311Year Member
Posts: 15
Reputation Power: 2
I would suggest closing your image tags. As of right now they are open and may cause some conflicts. But if you are structuring your website with the latest HTML standards then disregard that I said. Image closing tags are only required for XHTML standards not HTML5
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.