![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2015
Device: iBooks
|
Inline images cover up text
Hi, I'm searching high and low for an answer and haven't found it yet.
My EPUBs are viewed in iBooks. When an image (like an icon or equation) is in the middle of a list item, the inline image covers up the text. The bullet itself is in a separate div. (Don't ask..that's how the converter works.) The text itself is a hanging indent. Here's the definition: { line-height: 1.25em; margin: 0.35em 0 0.45em 1.45em; text-align: Left; text-indent: -1.45em; } When I change the style in the source file to "body", the inline image displays fine. Has anyone run into this problem? Last edited by loring; 01-18-2015 at 02:50 PM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Can you give some code examples and some more style examples? This is little to go on.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2015
Device: iBooks
|
Quote:
<div class="N1bullet"><span class="Number">• </span>The Chi-square <img class="Default" src="images/BA_03_Univariate_80.jpg" width="37" height="37" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Equation shown here" /> distribution occurs when....</div> Style for the bulleted paragraph: div.N1bullet { line-height: 1.25em; margin: 0.35em 0 0.45em 1.45em !important; text-align: Left; text-indent: -1.45em !important; } The text-indent causes the problem. It's the hanging indent for the list item. For the bullet character: span.Number { width: 1.45em; display: inline-block; margin: 0; padding: 0; text-indent: 0; } For images: img { vertical-align: middle; } I appreciate your help. |
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
Just by looking at the code I think that "float:none" might be causing a problem, otherwise I'd look at the text-indent like you mentioned and then the "display:inline-block"
|
![]() |
![]() |
![]() |
#5 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Your inline style rules for the image tag:
Quote:
You should either remove them or move the ones you want to the css. I don't think the left and top properties will have any effect unless you define the position property to be something other than static (the default). |
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
SVG images, external file versus inline | j.p.s | ePub | 4 | 07-18-2014 11:30 AM |
ID: Converting all images to inline | virtual_ink | ePub | 9 | 07-12-2011 09:12 PM |
inline text to footnote | Ciprian | Workshop | 0 | 06-27-2011 04:13 AM |
Which format to choose if ebook has inline images | Starko | Amazon Kindle | 5 | 11-10-2010 01:11 PM |
inline images - html2lrf Converter in libprs500 | benong | Calibre | 7 | 02-08-2008 11:07 PM |