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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-29-2012, 11:32 PM   #1
MarleneW
Junior Member
MarleneW began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: All
CSS classes on Android epub readers

I'm trying to colour headings in my epub, but on every Android reader I have installed on my Galaxy 7.7, the class settings are ignored. I can colour using span tags, or back grounds in tables but nothing else at all. As I am new to CSS is there something I am doing wrong? It looks fine in Sigil....
I'm making the pages in Dreamweaver....
MarleneW is offline   Reply With Quote
Old 04-30-2012, 08:11 AM   #2
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 581
Karma: 2000358
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
Quote:
Originally Posted by MarleneW View Post
I'm trying to colour headings in my epub, but on every Android reader I have installed on my Galaxy 7.7, the class settings are ignored. I can colour using span tags, or back grounds in tables but nothing else at all. As I am new to CSS is there something I am doing wrong? It looks fine in Sigil....
I'm making the pages in Dreamweaver....
Try your question on the Sigil forum. They have knowledgeable CSS folks over there.

http://www.mobileread.com/forums/forumdisplay.php?f=203

Regards - John
Jabby is offline   Reply With Quote
Old 04-30-2012, 11:13 AM   #3
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,250
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by MarleneW View Post
I'm trying to colour headings in my epub, but on every Android reader I have installed on my Galaxy 7.7, the class settings are ignored. I can colour using span tags, or back grounds in tables but nothing else at all. As I am new to CSS is there something I am doing wrong? It looks fine in Sigil....
I'm making the pages in Dreamweaver....
This appears to be a device limitation (ADE based devices has them also ) that you will need to find a work-around.
You said Colored Spans work?
Does a construct like
<h3 class="my1"><span class="my2">Text</span></h3>
work for color?
.my1 {display: block; text-align: center;}
.my2 {color: red;}
theducks is online now   Reply With Quote
Old 04-30-2012, 08:52 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,490
Karma: 19465195
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
Quote:
Originally Posted by Jabby View Post
Try your question on the Sigil forum. They have knowledgeable CSS folks over there.

http://www.mobileread.com/forums/forumdisplay.php?f=203

Regards - John
It's not a Sigil question. This is the right place for the question.
JSWolf is online now   Reply With Quote
Old 05-04-2012, 08:03 PM   #5
MarleneW
Junior Member
MarleneW began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: All
The problem was me - I have made some progress by starting my CSS again - now getting some colour in text and table backgrounds using classes but finding it frustrating that apps read the code differently. EG FB reader does not show my sans serif font (or any sans serif font) and the others do, a link to another page attached to a graphic sometimes works and sometimes does not, and in IBooks display=inline block is ignored. Even photos are split across screens. My client is reluctant to specify a platform so I guess they will have to live with the differences in appearance between reader apps. (We are looking at Androids or Ipods mostly - Nooks and Kindle Fire are not available here)

Can anyone suggest how to hide a number of pages (chapter) from appearing in the TOC or navigation options? I have tried setting the spine settings to linear = NO whereupon other pages are not available.

Also cannot get anchors to work reliably in anything (Mantano, FB Reader, Galaxy Ebook, Ibooks)...
MarleneW is offline   Reply With Quote
Old 05-05-2012, 05:22 AM   #6
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: 6,310
Karma: 4898871
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Fonts, unless they are embedded in the ebook, could or could not work in any reader, it depends on what they have predefined. "inline block" is not an officially supported value for ePub 2.

To hide things from the TOC, just remove them from the TOC. The TOC should be an NCX file which you can edit.

What doesn't work with anchors? I've never had a problem with them (except with pictures as links).
Jellby is offline   Reply With Quote
Old 05-05-2012, 06:57 AM   #7
Iznogood
Guru
Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.Iznogood ought to be getting tired of karma fortunes by now.
 
Iznogood's Avatar
 
Posts: 929
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
Quote:
Originally Posted by MarleneW View Post
Even photos are split across screens.
You could try to use this css property on a div containing the image:

page-break-inside:avoid !important;


Quote:
Originally Posted by MarleneW View Post
Can anyone suggest how to hide a number of pages (chapter) from appearing in the TOC or navigation options? I have tried setting the spine settings to linear = NO whereupon other pages are not available.
The best way to not have a chapter in the toc is probably to not put it there in the first place. Simply remove the navpoint that discribes that chapter and update the playOrder for the rest of the chapters.

"Hidden" chapters I usually move to the end of the book, and make links to move between the chapters. The linear-property is the correct way of hiding stuff inside your book, bot the property is not honoured by the rendering machines

Last edited by Iznogood; 05-05-2012 at 07:10 AM.
Iznogood is offline   Reply With Quote
Old 05-13-2012, 05:57 PM   #8
MarleneW
Junior Member
MarleneW began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2012
Device: All
Thank you for your comments - working on it
MarleneW is offline   Reply With Quote
Reply

Tags
android, css, epub

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why, During ePub to ePub Conversion does Calibre changes existing CSS classes? JSWolf Conversion 7 08-06-2011 08:32 PM
Calibre Inserting Its Own CSS Classes Xopher H Conversion 2 08-02-2011 11:21 PM
Any students using electronic readers for classes? jbcohen General Discussions 63 03-16-2011 11:06 AM
Classes in CSS in recipes? Tegan Recipes 10 01-17-2011 08:30 PM
NCX creation -- nested or not, css classes illustrata ePub 3 08-25-2010 09:56 AM


All times are GMT -4. The time now is 07:08 PM.


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