![]() |
#1 |
Member
![]() Posts: 11
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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 11
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! |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
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 |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
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 |
![]() |
![]() |
Advert | |
|
![]() |
Tags |
image hyperlink ade, images, kindle, linking, mobi |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formatting an eBook - Left justify or Justified | simonroyle | General Discussions | 145 | 07-06-2020 07:38 PM |
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 |