Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-14-2011, 06:28 PM   #1
jsimms
Junior Member
jsimms began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2011
Device: iPad, Kindle
EPUB issues on Nook. (CSS displays strange)

Hi all

I've put together a graphic-heavy Epub that looks great on my iPad, but when I loaded it on my Nook the formatting is totally different (worse). Most changes I can live with, but some of my images (PNG) that I've placed (using float) display under my HTML graphics (a colored bar) when they should appear above the graphics (as they do in iBooks)

Anybody out there had any CSS issues with the Nook and know how to resolve them?

Thanks!
jsimms is offline   Reply With Quote
Old 05-15-2011, 04:07 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
What's the XHTML+CSS code you used for those fragments?
Jellby is offline   Reply With Quote
Advert
Old 05-20-2011, 11:42 AM   #3
jsimms
Junior Member
jsimms began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2011
Device: iPad, Kindle
The problem: the red text bar (h3) appears OVER the png file.

HTML:

<div class="box2">
<h6><img alt="" src="../Images/SR-Colter.png" /></h6>

<h3><a id="MaryColter"></a>Architect of Grand Canyon</h3>

<p>IN THE EARLY 1900s, a time when few women practiced architecture, Mary Colter was hard at work designing some of the most spectacular buildings in Arizona. Her creations, several of which are found in Grand Canyon, helped define an architectural style that &nbsp;complemented the grand natural landscapes of the American Southwest.</p>

</div>

CSS:

.box2 {
font-family: "Georgia";
border: .15em solid black;
padding: 1em;
margin: 2em 0;
display: inline-block;
}

.box2 h3 {
font-family: "Georgia", Serif;
font-weight: bold;
font-style: normal;
font-size: 1.8em;
line-height: 1.1em;
text-decoration: none;
font-variant: small-caps;
text-indent: 0em;
text-align: center;
color: #FFFFFF;
background-color: #990000;
margin: 0 0 0.5em 0;
padding: .3em 0;
clear: none;
}

.box2 h6 {
float: left;
margin: -2em 0 0 -0.9em !important;
padding: 0 1em 0 0;
z-index: 2;
}

Last edited by jsimms; 05-20-2011 at 11:45 AM.
jsimms is offline   Reply With Quote
Old 05-20-2011, 01:36 PM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I guess the problem is that "z-index" is not included in the ePUB spec, so you shouldn't expect any ePUB reader to support it. The same happens with "display: inline-block".

If you want the image over the text, you'll have to change the code so that it appears second.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Mail issues J-Ro Devices 2 02-10-2011 01:12 PM
stupid question about epub? (nook + css) hapax legomenon ePub 0 10-31-2010 03:35 AM
Classic Nook crashes on epub with css * selector. aarcane Barnes & Noble NOOK 3 10-08-2010 04:17 PM
Opus Strange issues with Opus (the old white edition) Zzyzx Bookeen 3 07-23-2010 03:19 AM
Strange reformatting of the CSS in 0.1.17 ghostyjack Sigil 7 12-30-2009 12:38 PM


All times are GMT -4. The time now is 07:35 AM.


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