Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-18-2015, 02:14 PM   #1
loring
Junior Member
loring began at the beginning.
 
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.
loring is offline   Reply With Quote
Old 01-18-2015, 03:57 PM   #2
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Advert
Old 01-19-2015, 09:13 AM   #3
loring
Junior Member
loring began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2015
Device: iBooks
Quote:
Originally Posted by Toxaris View Post
Can you give some code examples and some more style examples? This is little to go on.
Sure. Here's an example of the entire paragraph that contains the inline graphic.

<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.
loring is offline   Reply With Quote
Old 01-20-2015, 12:53 PM   #4
odedta
Addict
odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.odedta read the news today, oh boy.
 
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"
odedta is offline   Reply With Quote
Old 01-20-2015, 01:14 PM   #5
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Your inline style rules for the image tag:
Quote:
style="display: inline; float: none; left: 0.0; top: 0.0"
will have higher priority than the rules in the stylesheet.

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).
DomesticExtremis is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 10:47 AM.


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