#picture as a hyper link

2 messages · Page 1 of 1 (latest)

livid lynx
#

My client wants a clickable picture. When I said, the CSS to cursor:pointer, and at the hyperlink, as if it were an HTML document, nothing happens. I can hover the icon doesn’t change to a pointer and the click doesn’t take me to a new page. Is that normal? If so, how do I fix it?

modest lodge
#

Hmm might be worth sharing some code!

<a href="/foo">
  <Image src={myImg} />
</a>

Should work just fine, also worth noting that if your anchor tag a has a href, it'll automatically have the pointer cursor added, so you shouldn't need to add it yourself.