-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I give an image a working clickable HREF? #495
Comments
hi @fancellu , as a workaround, you can set <html>
<body>
<a href="http://google.com" style="display:inline-block;border:1px solid blue">
<img src="https://www.101dogbreeds.com/wp-content/uploads/2018/08/Flat-Coat-Retriever-Pictures.jpg" width="150px"></img>
</a>
</body>
</html> I've added the blue border to make it more visible the difference. If you remove the display: inline-block, the link box will have the height of the line. |
Ok thanks. However I see some whitespace, under the image but inside the blue border And if I take out the whitespace, i.e.
I then see a blue line under the image |
If you don't want the text decoration, you can turn off with |
Yep
Gives me a properly clickable image without any mystery spaces or underlines. Might be an idea to put that in the docs as I imagine many people would like this |
BTW, just published a little Scala project to show this in action. You might want to link to it in the docs somewhere |
I've finally created the FAQ Tips page on the wiki with this tip to start with. Thanks everyone. |
oddlink.pdf
Doesn't work properly. The link is only clickable on lower half of image
Am using 1.0.3
Thanks
The text was updated successfully, but these errors were encountered: