![]() |
Stylesheet examples?
Hi,
Am trying to standardize my epubs, they are quite a mess (converted from various things) and was wondering what basic stylesheet do people use? Could you post yours? Thanks, Mike. |
Quote:
Lean and mean, Just what that book needs :thumbsup: for a brisk performance. Most weigh in at 100 lines for basic books. Add another 100 for books with drop caps and/or with syled headers. Code:
.calibre { |
Hmm, mine is larger. :D
Code:
.standart { |
Steven's grand unified CSS (yeah, right)
I don't really have a one style fits all mentality and I don't think I ever would. How a work is styled should fit with the content of the work. For example a Shakespearean comedy such as "As You Like It" would be styled differently from William Gibson's "Neuromancer".
Having said that. I am finding myself attracted to the included CSS for generic fiction works. I would remove the poem sections or the letter sections for those docs that don't have verse or letters. Each xhtml file that I use with this has <body id="content"> except the title-page which has <body id="content-title">. I do this in case in the future I need to have other # sections (say for sidebars or menus or ???). With this and other CSS sheets I use <p> only for the bulk of my paragraphs unless I want to specifically override it with a class such as noindent. Use classes as necessary not unnecessarily. There are probably things that could be trimmed but not right now. Code:
/* Base CSS file */ |
Quote:
I guess I failed to make another point. All my books DO NOT look the same, even if they are "Text only" ( I do try and make a "series" look Different chapter heading styles. different Paragraph (block) styles My "first" tweak of a CSS sets basic things that work nice with my 5" PEz (But I also look at what happens on the bigger screen. Next I tame "white space". One screen for just the Chapter heading don't cut it with me :D 25% for Heading with Margins :) tops (But I usually do give a single page to "Part 1" style type pages). I lose any white space at the end of a chapter. (Chapters always start on a new page :thumbsup: (even if the original printing did not.) Obviously, my "style" does not work well on a tiny phone screen. :eek: and AFAIK the current standards do not have setting provisions for the huge differences in "CRT" size, orientation or aspect ratio |
A pretty basic stylesheet:
Code:
p { |
Code:
@page {All vertical margins are related to the line-height (either a simple fraction or integral multiple) and margins using fractions of the line-height are organised so that the top and bottom add up to a multiple, eg for a subhead I might use Code:
p.subhead { |
Hello
Quote:
Quote:
ru |
Quote:
If that is all you want,? Html with NO (aka default) style. Every document will look the same(ish) AND UGLY, to boot :( There is a reason that publishers spend LOTS of money on Fonts (licensed) and typographers. It's so the book does NOT look "just the same" as the others. Many Imprints do have basic "Style rules" to set their "brand". Series may use a uniform style across the series. Interestingly, I discovered "Style" has changed almost full circle. I was scanning some covers on my older (1960's) Paper Library to use in Calibre, when I noticed that New chapters could begin almost anywhere on the page. A style that I had been *fixing* , to start on a fresh page, in the e-edition :chinscratch: Tastes change ;) |
Quote:
Now printing costs are less prohibitive, so they space out books, even using larger fonts, and splitting what used to be a single 'old' book into two or more 'modern' books. (so they get more money out of the punters.) |
OMG
Quote:
Over 40 Years of reading all the time i thought that the Story of a book is that what matters. Now, finaly after all that lost time you told me that it's the look of the book that's all about. OMG what have i done. Now, for real, i think you take this to serious. Maybe it's because of my age, but i have no problem with Quote:
When i startet playing around with computers 30 years ago, there were no alternatives. I played a lot of Computergames in the last 30 Years and what i realy learned in my excessive gamingnights is the the look of a game is of absolutly no interrest FOR ME. The only thing that matters is the Story thats being told. Maybe (in your eyes) thats wrong, but its my Opinion. I'm not trying to tell you that your "EVERY BOOK NEEDS HIS ONE STYLE" Way is wrong. So dont tell me that mine is not right. Sometimes i read for about 4 houres in one without making anything else. I get totaly lost in the Story of the book (if it's a good one) and with the first word i read a movie is starting in my head and i do not realize what's going on around me. And if you ask me after reading, how many pages i read or what the book looks like, i can not say, because the only thing i see is the movie in my head. Finaly, i dont know if i do somthing wrong ( and in my 1. Post i only gave an example of my Stylsheet and did NOT start a discussion about the way a book should look) but for me, the only thing that matters about a book, is the Story that it told's. ru |
Lipstick on a Pig (Story) does not change it from being a bad deal :)
Part of the thing about great food, is its presentation. The food still has to be good :) (My local chain store Bakery has cookies that look wonderful... They forgot to put in the flavor :( Books are the same way. Have a Story. Now add presentation. Like the difference in ME reading lines in a animated film and, Say Robin Williams :rofl: Using a one size fits all CSS is like taking a 18 Wheeler to Market to get a Quart of milk. |
Wow! Thanks for all the great examples, they are greatly appreciated. I've learned quite a bit just seeing some examples (I haven't done html since before CSS and didn't know anything about it) It gives me a great starting point for my own (currently evolving) stylesheet. I was surprised how many didn't use the standard <p> and just modify off that with <p.noindent>/<p.italic>/etc., the idea of inheritance is appealing to me. It also seems most don't use the standard <h1/2/3/4> for easy TOC in Sigil.
I am not surprised there are lots of different opinions on how the book should look :) But as @schlonz says I was looking for a standard look, something close to a book. My iPhone has a relatively small screen and the excessive margins, line spacing, font size changes, etc. just mean I fit less on the screen at a time and need to flip pages excessively. If I had a larger device then I would be much more interested in an expressive look. Since my (and most I would hope) device allows a global text size change I am very interested in what relative font sizes people use. Quote:
Mike. |
Quote:
Quote:
Quote:
|
I'm out of my depth here....a true noob...
I'm trying to figure out how to change the fonts on epubs I load onto my Kobo, i.e. override the built-in fonts that for me are too light, not black or contrasty enough. I have a sense that this means altering or adding to the stylesheet for an epub, but that's as far as I've gotten. I've used Calibre and just downloaded Sigil....but I don't see this capability or at least in any direct way... Can someone point me toward the next step or offer other suggestions. Many thanks (from Toronto). |
Quote:
You might check the Kobo group fist off to see how to add fonts to the Kobo in general. Then it is a simpler matter to call those from the stylesheet. |
| All times are GMT -4. The time now is 07:35 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.