![]() |
#16 |
Lector minore
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 660
Karma: 1738720
Join Date: Jan 2008
Device: Aura One, Paperwhite Signature
|
I like to set line-height in my personal books. This is because of reading on devices which don't allow you to adjust (Sony) or have very limited range of adjustability (Kindle PW2)
|
![]() |
![]() |
![]() |
#17 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
- The reader does not offer a way to change font or line-height, and the user is just satisfied with the defaults. Nothing to be done. - The reader does not offer a way to change font or line-height, but the user cares and can tweak the CSS to his/her liking. The simpler and cleaner the CSS, the easier it will be for the user to tweak. - The reader does offer font and/or line-height settings. Any setting you add in the CSS could prevent this to work (just like a hard-coded font Quote:
![]() I currently have an Orizon, as you can see in my profile. |
||
![]() |
![]() |
![]() |
#18 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
I've attached a body definition and a page global that I typically use for all of my personal ebooks. I do not develop anything professionally so these are just personal choices but these provide a very nice, clean look for me.
I, for one, despise the fact that most commercial ebook designers are now using pixels as a unit of measure for setting margins, indents and the like. It's such an arbitrary, subjective unit of measure. A measurement that looks great on a Kindle 3 or a first or second generation Nook eink reader, will almost certainly look horrible, and quite possibly even non-existant on my ultra high-resolution Nook HD+ tablet reader. I don't care for % either but it is much, much better than using pixels. Personally, I use ems and feel this is a much better unit of measure but I realize everyone has their own opinions. I've had to result to developing my own little formula to convert pixels to ems and the first thing I do when I purchase a new ebook is clean up the css and convert any and all pixel measurements to em. That's what works for me. - Byron Code:
@page { margin-top: 2em; margin-bottom: 1.333em; margin-left: 2em; margin-right: 2em; } body { display: block; font-size: 1em; line-height: 1.2em; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; padding-left: 0; padding-right: 0; page-break-before: always; text-align: justify; font-family: "Charis"; (or whatever font I wish to use) } |
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,574
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The "page-break-before" is unnecessary. There's always a page-break with each new html file (and each html file can have only one body).
"display: block" really serves no purpose in that context either. |
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@Jellby
My opinion is that setting up font-family, lateral margins, line-height only once in the body let them be easily modifiable either by current ebook-readers like KoboGlo or by opening the CSS. Sorry for the Nook, I was joking. ![]() @bfollowell Thanks for sharing. About relative units Yes em is certainly a unit I will consider for margins, paddings and font-size. I've found that % -which looks externally very handy- may yield inconsistent results (some readers or apps fail to take them precisely into account) for margins and paddings. It's perfect for font-size. Other attributes I personnaly do not setup text-align and font-size in the body but it's your choice. Could you comment further on why you use these following attributes. I may have missed something (and I certainly missed the DiapDealer comment above). ![]() - display:block; - page-break-before:always; Last edited by roger64; 03-24-2014 at 11:01 PM. |
![]() |
![]() |
![]() |
#21 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Quote:
- Byron |
|
![]() |
![]() |
![]() |
#22 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
And it didn't matter how we embedded the fonts; by individual style; by class, by body. One of the fonts just would NOT display. FWIW. Hitch |
|
![]() |
![]() |
![]() |
#23 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Quote:
- Byron |
|
![]() |
![]() |
![]() |
#24 | |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
(P.S.: this is also VERY true if the client/publisher uploads an ePUB at NookPress and does NOT explicitly tell it to use the "original file." NookPress has CSS, etc., that it will use INSTEAD OF the CSS provided, so that the entire file gets overwritten in a completely different fashion. If you produce books commercially, make sure your clients are aware.) Hitch |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Versteckte Bilder" oder "Was man mit ebooks nicht machen kann." | beachwanderer | Lounge | 1 | 01-15-2014 07:41 AM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
<body style=""> How to stop this? | Danger | Sigil | 8 | 12-13-2010 08:17 PM |