-1

My code is simple and basic however it doesn't work and I can't figure out why.

The link works great with text though. The cursor doesn't change, it stays as an arrow.

<div class="container">
    <a href="link"><img id= "pil" src="myimage.jpg" alt="pil"></a>
    <a href="link"><img id= "yoyo" src="myimage2.jpg" alt="yoyo"> </a>
</div>
ItsPete
  • 2,363
  • 3
  • 27
  • 35
  • CSS : main { text-align:center; display: inline-block; } #pil { max-width: 300px; max-height: 200px; margin: 0px; } #yoyo { width: 300px; height: 200px; margin: 0px; } – Algocph Dec 09 '19 at 20:51
  • 2
    Almost certainly a path issue – Paulie_D Dec 09 '19 at 20:52

1 Answers1

1

Look carefully at the path

It seems that you did't use the correct path. Take a look at this question

  • Thank you Dima for your answer, The image charge just fine and the link works perfectly when I replace the image with a text so I am not sure wich link you are thinking about? the image ? – Algocph Dec 10 '19 at 07:33
  • @Algocph Sorry, I wanted to mention the **path** –  Dec 13 '19 at 15:35