03-30-2022, 06:54 PM | #31 |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
Would anyone else like to post a generic style sheet from their own collection as JSWolf has done?
It would be useful to have a few examples as a reference for what CSS is "known to work" for others in their publishing of ebooks. It's good to know where the guardrails are. Last edited by roland1; 03-30-2022 at 06:56 PM. |
03-30-2022, 07:48 PM | #32 |
Addict
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
That example is a pretty good baseline for things that tend to work. It’s nice and simple which is about as good as you can get for something that works for lots of stuff. The farther you get out from that, the more you get into little calculated risks and more general ideas like D.R.Y. and K.I.S.S. type stuff.
|
Advert | |
|
03-30-2022, 07:56 PM | #33 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I'd be happy to give you a copy of mine, but alas, I am not constrained by having to sell on different sites and only need to make them pretty for myself. However, there are several books in MR's free library that you can download and look at their css. There are some very well done (and a few not so well done ) that can give you ideas on what people have used. Another trick is to download a book (hopefully a well done one) from each of the sites you want to publish your book. Look at the css and see if/how it's different between the sites. |
|
03-30-2022, 08:12 PM | #34 |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
I thought about that "bread and butter" aspect as I was writing my post. I asked because I don't need to borrow ideas from people in regards to design. But I certainly understand people's not wanting to share their proprietary css styling.
I struggled with that in my book, where I give away a bunch of proprietary secrets like "The IPSFA Sequence" —*which anyone could claim and run with as their own "social psychology breakthrough tool." World is full of creeps, as we all know. But I'm not one of them. But yeah, I totally get it. And thank you, JSWolf. I'm sure those styles will be a useful guide. Last edited by roland1; 03-30-2022 at 08:16 PM. |
03-30-2022, 08:22 PM | #35 | |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
Quote:
(In think my only point of reference before I began was the SIGIL user manual —*a modern day classic.) Last edited by roland1; 03-30-2022 at 08:26 PM. |
|
Advert | |
|
03-30-2022, 09:22 PM | #36 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I know that ages ago--it's gotta be 10 years, eh, Wolfie?--I shared our then-inhouse CSS with him, but that's nearly worthless now. Also, we have a rule--we only keep in each eBook what we use in that eBook. We don't leave unused CSS in any ebook. At least, hopefully, we don't. (Famous last words). I'll see if I can find a nice simple CSS sheet, but Jon (Wolfie) is very picky about his books and you should be in good stead if you start with his. Hitch |
|
03-30-2022, 09:25 PM | #37 |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
Q. In my new book I have bold headings followed by a short, no indent paragraph. However, I need to maintain some spacing between these sections, yet the advice here has been to avoid margins to allow the user to assign them.
So how would I deal with something that looks like this? : SOME HEADING Paragraph full of text, some of it good. (space) ANOTHER HEADING UNLIKE THE FIRST Another paragraph full of text, none of it good. (space) YET ANOTHER HEADING... content that's hopefully better than that last stuff... (space) Well, you get the idea. Should I use < br/> or margins —*or are there space before and space after css conventions now that actually work? Last edited by roland1; 03-30-2022 at 09:35 PM. |
03-30-2022, 09:29 PM | #38 |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
Thanks, Hitch. And I'm sure what you said is true about Jon's style sheet. I get the feeling that there are no amateurs posting here, at least not on this thread. Well, with one exception...me. But I do get some good work done in between making jokes.
|
03-30-2022, 10:22 PM | #39 | |
Addict
Posts: 311
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Quote:
Last edited by phillipgessert; 03-30-2022 at 10:39 PM. |
|
03-30-2022, 11:41 PM | #40 |
Connoisseur
Posts: 80
Karma: 2137678
Join Date: Dec 2021
Location: Canada
Device: none
|
Thanks for your reply, Phillip. I believe I am becoming slightly suspicious of all that I think I know about html/css.
Schroedinger's ebook —*if you don't read it, the layout remains perfect. |
03-30-2022, 11:52 PM | #41 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
03-31-2022, 07:10 AM | #42 | |
Resident Curmudgeon
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-31-2022, 07:22 AM | #43 | |
Resident Curmudgeon
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
<p class="CN">CHAPTER ONE</p> <p class="CT">BEN (I)</p> <p class="SN">1</p> <p class="noindent">By the time he had passed Portland going north on the turnpike, Ben Mears had begun to feel a not unpleasurable tingle of excitement in his belly. It was September 5, 1975, and summer was enjoying her final grand fling. The trees were bursting with green, the sky was a high, soft blue, and just over the Falmouth town line he saw two boys walking a road parallel to the expressway with fishing rods settled on their shoulders like carbines.</p> Code:
<p>He looked down at his arms. They had broken out in goose flesh.</p> <p class="SN">2</p> <p class="noindent">He deliberately skirted town, crossing into Cumberland and then coming back into ’salem’s Lot from the west, taking the Burns Road. He was amazed by how little things had changed out here. There were a few new houses he didn’t remember, there was a tavern called Dell’s just over the town line, and a pair of fresh gravel quarries. A good deal of the hardwood had been pulped over. But the old tin sign pointing the way to the town dump was still there, and the road itself was still unpaved, full of chuckholes and washboards, and he could see Schoolyard Hill through the slash in the trees where the Central Maine Power pylons ran on a northwest to southeast line. The Griffen farm was still there, although the barn had been enlarged. He wondered if they still bottled and sold their own milk. The logo had been a smiling cow under the name brand: “Sunshine Milk from the Griffen Farms!” He smiled. He had splashed a lot of that milk on his corn flakes at Aunt Cindy’s house.</p> Code:
.CN { font-family: sans-serif; font-size: 1.7em; margin-top: 0.8em; margin-bottom: 0.6em; text-align: center; text-indent: 0; } .CT { font-family: sans-serif; font-size: 1.7em; font-weight: bold; line-height: 0.7; text-align: center; text-indent: 0; } .noindent { text-indent: 0; } .SN { font-family: sans-serif; font-size: 1.5em; font-weight: bold; margin-top: 1.6em; margin-bottom: 0.8em; text-align: center; text-indent: 0; } |
|
03-31-2022, 07:27 AM | #44 | |
Resident Curmudgeon
Posts: 73,896
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Answer this question before you decide you want paragraph spaces. How many pBooks (paper books) have you read that have paragraph spaces? Also, do not use line-height at all. It's not needed. A lot of Readers allow you to specify your own choice of a line height. |
|
03-31-2022, 07:51 AM | #45 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I'm going to throw a semantics flag on Jon here...while the CSS is purely whatever you want it to look like (within the limits of your website's rules) HEADINGS need to use the HEADINGS tag <h1> - <h6>...that's what they are for. You can still style headings however you want with CSS but lots of people and devices (accessibility) depend on publishers marking up the document properly. <h1> - <h6> can be used in a hierarchical manner. Some here don't see a purpose in that, but I like organization. So here's my change to Jon's sample: Code:
<h3>CHAPTER ONE</h3> <p class="CT">BEN (I)</p> <h4>1</h4> <p class="noindent">By the time he had passed Portland ...</p> <p>He looked down at his arms...</p> <h4>2</h4> <p class="noindent">He deliberately skirted town, crossing into...</p> ex. h4 {margin-top:2em} Last edited by Turtle91; 03-31-2022 at 07:55 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Filenames on Nook Simple Touch oddly mangled | ChristopherTD | Devices | 2 | 07-20-2013 06:25 AM |
Kobo not charging and mangled USB ports | caroliv | Kobo Reader | 1 | 01-25-2013 06:57 AM |
K3 is mangled - cannot update to 3.4 | horizon21 | Kindle Developer's Corner | 20 | 10-12-2012 10:31 AM |
ebook preview | venkatesh | General Discussions | 12 | 11-18-2010 11:58 AM |
eBook viewer Print Preview settings not saved | Agama | Calibre | 3 | 08-22-2010 08:04 PM |