Menu icon Foundation
How Do You Add Links to Your Images?

Whenever I add links to my images, it seems to break the alignment or break the email.  I figured I could just use something like this but it doesnt seem to work.

 

<center>
 <a href="#"><img src="http://placehold.it/200x200"></a>
</center>

<a href="#">
  <center>
    <img src="http://placehold.it/200x200">
  </center>
</a>

 

I noticed in all of the templates included in foundation never include links with images.

 

How are you guys doing it?

imageslinks

Whenever I add links to my images, it seems to break the alignment or break the email.  I figured I could just use something like this but it doesnt seem to work.

 

<center>
 <a href="#"><img src="http://placehold.it/200x200"></a>
</center>

<a href="#">
  <center>
    <img src="http://placehold.it/200x200">
  </center>
</a>

 

I noticed in all of the templates included in foundation never include links with images.

 

How are you guys doing it?

Rafi Benkual almost 3 years ago

The center tag needs to be around the image. Moving the anchor around the center tags works better.

<a href="#" target="_blank">
  <center>
    <img src="http://placehold.it/300x300" class="" height="" width="" alt="">
  </center>
</a>

Ashwin over 1 year ago

Before i have lots of problem and i was looking for the solution and how to fix windows 10 mobile bluetooth audio devices and wireless displays connections so many times some tutorial charge for knowledge but here i am able to learn all the steps for free.