Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-22-2012, 06:17 AM   #1
steve2112
Junior Member
steve2112 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2012
Device: None
Why is image left justified when I link to it?

Hi

I'm converting Indesign files into epub and then using Calibre to create mobi files. One of the issues I can't seem to clear is when I link from my illustrations list to an image, the image is set to the left of the screen, even though it is meant to be centred.

If I then page up and back down again, the image has centred itself (so the formatting is obviously in there) - though it doesn't if I page down then up?!

I'd appreciate any ideas

Thanks
steve2112 is offline   Reply With Quote
Old 03-22-2012, 09:10 AM   #2
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 932
Karma: 1153099
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Kindle 3/WiFi Retired:Clie - UX50, T415, ...
InDesign has placed the target anchor tag incorrectly, at least incorrectly by Mobi standards.

When the Mobi/Kindle reader jumps to an anchor it does not look backwards to look for possible style instructions. You need to edit the ePub and move the anchor targets to a point before whatever wrapping container (<p>, <div>, <span>, ...) has the style instructions to center the image. That way, when the reader jumps to the anchor and runs forward it encounters the centering instruction before encountering the image tag.
dwig is offline   Reply With Quote
Old 03-22-2012, 12:00 PM   #3
steve2112
Junior Member
steve2112 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2012
Device: None
Thanks for such a quick response.

I'm still fairly new to the HTML-level side of things but I'm picking it up and your answer makes good sense - many thanks!
steve2112 is offline   Reply With Quote
Old 03-22-2012, 12:05 PM   #4
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 932
Karma: 1153099
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Kindle 3/WiFi Retired:Clie - UX50, T415, ...
You'll find a lot of discussion of this issue if you search the forum for footnote linking problems.

BTW, there is a lot of good HTML and CSS infor available at W3schools
dwig is offline   Reply With Quote
Old 03-23-2012, 02:53 AM   #5
steve2112
Junior Member
steve2112 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2012
Device: None
That's great - thanks very much for your help - I found the anchor problems in the HTML code and remedied easily.

Much appreciated

Steve
steve2112 is offline   Reply With Quote
Reply

Tags
image hyperlink ade, images, kindle, linking, mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get rid off "left-justified" text SMR Kindle Developer's Corner 3 03-01-2012 01:14 AM
Left-justified text in a right-justified box Skeezix Conversion 4 11-15-2011 08:44 PM
iPad Image/Link glitches willthethrill521 Apple Devices 0 11-04-2011 01:54 PM
Trying to add link in image within svg Maal656 Sigil 0 07-25-2011 05:15 AM
Formatting an eBook - Left justify or Justified simonroyle General Discussions 75 10-28-2010 08:58 PM


All times are GMT -4. The time now is 06:38 PM.


MobileRead.com is a privately owned, operated and funded community.