Mobileread
Skeleton CSS
#1  Chaihana Joe 12-01-2018, 11:51 AM
One would think that, somewhere out there, somebody would have posted an elegant barebones ePub CSS file for novice book designers to base their work on. Try as I might, though, I haven't been able to find one.

Can anyone point me to such a thing? I'm looking for a minimal approach - maybe a hundred lines of code, max. I don't care if not every eventuality is catered for, in fact I'd see working under the constraints of something so simple to be a good discipline.

I would be looking for something that worked pretty much universally across platforms.

TIA
Reply 

#2  DiapDealer 12-01-2018, 01:11 PM
Quote Chaihana Joe
I would be looking for something that worked pretty much universally across platforms.
And therein lies the problem. If such a unicorn existed, you'd have no difficulty finding it. Because everyone would be using it. But it doesn't exist. There is no one-size-fits-all solution. Concessions must be made, and platform-specific exemptions and special cases must be accounted for (ever-changing exemptions and special cases, no less). The book content itself often dictates wide variances as well.

Every ebook designer seems to eventually come up with something that works reasonably well for most of their own needs, but as a result, the same css doesn't often lend itself well to anyone else's personal ebook coding/naming practices.
Reply 

#3  DaleDe 12-01-2018, 01:18 PM
Well you might look in our wiki along with 19,000 other people. CSS template@Wiki ». There are several articles such as CSS@Wiki » and it point to others.

Dale
Reply 

#4  najgori 12-01-2018, 01:37 PM
or google "github epub template"?
Reply 

#5  Chaihana Joe 12-01-2018, 02:08 PM
Quote DaleDe
Well you might look in our wiki along with 19,000 other people. CSS template@Wiki ». There are several articles such as CSS@Wiki » and it point to others.

Dale
Very useful, thank you. I haven't been seeing wiki.mobileread. pages coming up in my Google searches.
Reply 

#6  Doitsu 12-01-2018, 03:07 PM
Also check out:
Reply 

#7  DNSB 12-01-2018, 11:52 PM
Quote DiapDealer
Every ebook designer seems to eventually come up with something that works reasonably well for most of their own needs, but as a result, the same css doesn't often lend itself well to anyone else's personal ebook coding/naming practices.
Or you end with the stylesheets used by some publishing houses with so many special case entries that the file becomes unreadable and difficult to maintain.
Reply 

#8  Hitch 12-02-2018, 12:16 AM
Quote Doitsu
Also check out:
Quote
One would think that, somewhere out there, somebody would have posted an elegant barebones ePub CSS file for novice book designers to base their work on. Try as I might, though, I haven't been able to find one.
There's a CSS sheet in every single published ePUB, right? Why not start there? Or, as others have pointed out, the Wiki here. OR, one of the thousands of ePUBs published here. That's how pretty much everyone here, and everyone in the business, learned.

Quote
Can anyone point me to such a thing? I'm looking for a minimal approach - maybe a hundred lines of code, max. I don't care if not every eventuality is catered for, in fact I'd see working under the constraints of something so simple to be a good discipline.
Well, unless you're talking about the world's simplest ePUB, it's going to be more than 100lines of code. You might also look for a Wayback Machine copy of the CSS Zen Garden, which had LOTS of CSS for a variety of ePUBs, and the developers of that cheerfully made it available for public consumption. You could also spend a few bucks and buy Liz Castro's "ePUB: Straight to the Point," which, while a teeny bit dated now, has all the essentials for learning the fundies of ePUB-building.

Quote
I would be looking for something that worked pretty much universally across platforms.
As DiapDealer explained, that's a Grail Quest--and really, it's more than that, you're Quixotically tilting at windmills. No such thing exists, because the retailers and device-makers and those who just HADDA make a new ePUB reader all created different readers, that respond differently to CSS. Apple's pretty big on ignoring the standards, and some of the nine bajillion software readers out there either completely ignore the CSS, or allow the end user to override it. Welcome to the joys of eBookmaking!

Unasked-for-comment: if you plan to use your ePUB for Kindle-building, don't use the Blitz CSS. You need a lot more experience under your belt to understand what's happening with all the inheritance functionality in that, and a lot of it will not work for MOBI and it certainly won't for KF7.

Paul (BBeBooks) does a very nice job, and his is likely the closest to what you'll want. I've worked with him and respect his work.

Hitch
Reply 

#9  Sarmat89 12-03-2018, 09:05 AM
EPUB is not a semantic format, so it is unlikely it could be created. For example, it doesn't even require you to make a book of paragraphs: DIVs can be used instead just fine. The format doesn't allow for book-specific metadata, footnotes, chapter headers (!!), proper illustrations, etc.
If there were a sematic XML-based format, we would have dozens of such templates/themes, like some proprietary book readers have.
Reply 

#10  Notjohn 12-03-2018, 12:27 PM
You are welcome to use or adapt mine:

https://notjohnkdp.blogspot.com/2013/07/heres-my-style-sheet.html
Reply 

  Next »  Last »  (1/7)
Today's Posts | Search this Thread | Login | Register