![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2010
Device: none
|
epub CSS versus "Regular" CSS
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
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.
|
![]() |
![]() |
![]() |
#3 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,590
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,884
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
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 ![]() |
|
![]() |
![]() |
![]() |
#5 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
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. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |