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 02-08-2011, 08:29 PM   #1
konrad
Member
konrad began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
epub CSS versus "Regular" CSS

Hello everyone ,
I have a question about the difference between "Regular" (web page) Css and Css used in ePubs.What will actually validate (I use Flightcrew) and what wont and why.Is there some publication or a website that spells it out in a non-technical way that a beginner can understand ? I have consulted the ePub specs but they seem vague to me. I`ve tried applying what little Css I`ve learned about web pages to ePubs with limited success. If anyone can help me with this it would be appreciated. Thank you.
konrad is offline   Reply With Quote
Old 02-09-2011, 03:30 AM   #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: 2,867
Karma: 2714881
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
The most CSS will work for ePubs regarding formatting. Some more 'advanced' stuff will not work. For some things you just need to try. It is specified in the specs and I believe Valloric used those specs for Flightcrew. However, specification in the specs will not garantuee that it will work on the readers. Implementation of the specs into the software is done by others, e.g. Adobe. They decide whether to implement the specs or not unfortunatly.
Toxaris is offline   Reply With Quote
 
Enthusiast
Old 02-09-2011, 05:48 AM   #3
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 30,833
Karma: 85467920
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by konrad View Post
Hello everyone ,
I have a question about the difference between "Regular" (web page) Css and Css used in ePubs.What will actually validate (I use Flightcrew) and what wont and why.Is there some publication or a website that spells it out in a non-technical way that a beginner can understand ? I have consulted the ePub specs but they seem vague to me. I`ve tried applying what little Css I`ve learned about web pages to ePubs with limited success. If anyone can help me with this it would be appreciated. Thank you.
There's not only the problem of what CSS is valid in an eub, there's also the problem of what CSS is supported by the various ePub implementations.

For the standard, the authoritative source is

http://www.idpf.org/2007/ops/OPS_2.0...tml#Section3.3

although you really need to read the other parts of the document too, not just section 3.3.

For individual implementations, I don't think there really is any documentation collected anywhere.
pdurrant is offline   Reply With Quote
Old 02-09-2011, 08:29 AM   #4
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: 14,262
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by konrad View Post
Hello everyone ,
I have a question about the difference between "Regular" (web page) Css and Css used in ePubs.What will actually validate (I use Flightcrew) and what wont and why.Is there some publication or a website that spells it out in a non-technical way that a beginner can understand ? I have consulted the ePub specs but they seem vague to me. I`ve tried applying what little Css I`ve learned about web pages to ePubs with limited success. If anyone can help me with this it would be appreciated. Thank you.
Just to re-iterate
A valid EPUB CSS may not work as desired on all devices
Example
Centering an small HR (horizontal rule) with the CSS works in Sigil, and Calibre viewer but does not center on my Astak( w/ADE). You have to use less elegant coding
theducks is offline   Reply With Quote
Old 02-18-2011, 09:29 AM   #5
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
FlightCrew (currently) does not perform validation of CSS files.

Then again, neither does EpubCheck, but FC will at least get this feature in the future.
Valloric is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS to "wrap" text between two .xhtml files? december Sigil 28 12-06-2013 03:29 PM
Overriding CSS ".articledescription" miwie Recipes 6 01-18-2011 11:30 AM
Is there a way to get Calibre to retain "!important" in a css? PatNY Calibre 1 01-06-2011 12:31 PM
using "Extra CSS" box RedRoverJ Calibre 4 06-25-2010 07:08 PM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 09:13 AM


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


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