View Full Version : Hyperlinked images don't work in ADE


hpstricker
11-25-2010, 04:13 AM
When inserting this hyperlinked image into my EPUB (which successfully passes epubCheck):

<a href="http://www.google.com"><img alt="Google" src="google.png"/>Google</a>

only the text part of the link works (mouse cursor changes to a pointing hand, and the browser opens the page). The image remains "dead".

What might be the reason, any idea?

Hans

Jellby
11-25-2010, 05:33 AM
What might be the reason, any idea?

A known bug in ADE.

hpstricker
11-25-2010, 05:36 AM
A known bug in ADE.

No work-arounds? Hyperlinked images just don't work?

Adjust
11-25-2010, 04:12 PM
No work-arounds? Hyperlinked images just don't work?

If they are in a p class they will hyperlink

<p class="image"><a href="Contents.xhtml"><img src="images/CH04.jpg" alt="4" width="100%" /></a></p>

hpstricker
11-26-2010, 02:44 AM
Are you sure? For me it didn't work even with the <p> around. Could you attach a mini sample epub where I can see it working?

Jellby
11-26-2010, 04:11 AM
I'm not sure I have tried with a <p>. I know I've tried with <div> (see this example (http://www.mobileread.com/forums/showthread.php?t=105158)), and it doesn't work with the Cybook.

Adjust
11-26-2010, 06:38 PM
This is butchered one I made from the book I did. I haven't run it through epubcheck, you you will get the idea.

It works in ADE, and iBooks (iPad)