![]() |
#76 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#77 | |
Samurai Lizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,954
Karma: 70029956
Join Date: Nov 2009
Device: NookColor, Nook Glowlight 4
|
I wrote the following as part of a post:
Quote:
I think that it's a trade off, with advantages and disadvantages. Based on my own experience using styles in word processing, it seems that often styles make things so complicated (such as when some styles cross each other) that it makes it difficult to determine what is is causing the inconsistent formatting so that it can be corrected. Often it's easier just to use direct formatting, especially when it for a simple effect like making a small amount of text bold. |
|
![]() |
![]() |
Advert | |
|
![]() |
#78 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
For something like making couple of words bold, sure, I agree. The area where CSS is useful is when you do want to have, say, a particular style for all your chapter headings. Define a "Chapter" style, give all your chapter headings that style, and you can then globally adjust them all simply by editing that one style. It's far less error-prone that apply formatting tags individually to each one.
|
![]() |
![]() |
![]() |
#79 |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
|
![]() |
![]() |
![]() |
#80 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Like most other things in life, CSS styles can used correctly or incorrectly. When used correctly, they are massively beneficial compared to directly specifying the formatting of every paragraph, heading, etc. Sure they can be abused, but the problem in that case is the incorrect usage, not the styles themselves.
|
![]() |
![]() |
Advert | |
|
![]() |
#81 | |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Totally agree.
Quote:
In theory, the HTML is for content, CSS for formatting. What's happening is that the line between content and formatting is getting blurred. To my mind, content is the bits of a ebook that the author has specifically delineated. This means that you have your chapters and paragraphs. But also italics and bold, scene breaks, block quotes, etc. Formatting is things like the indentation and spacing of paragraphs, chapter headings, whether A.M. and P.M. are presented in small text, how much space scene break consumes. Furthermore, the integration of the CSS into the HTML is generally a dog's breakfast. For example, there is no reason that the 6000 normal paragraphs in an ebook all need to have the CSS class specified in the <p class="p1"> tag, you can just as easily set the CSS for the <p> tag to be the same as p1. |
|
![]() |
![]() |
![]() |
#82 | |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Quote:
I've seen more that enough of the insides of ebooks to say that most ebooks are not using CSS correctly. They are using the formatting to delineate content. To the publishers, this is fine, as there is no content in a physical book, only formatting. |
|
![]() |
![]() |
![]() |
#83 | |
No Comment
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,240
Karma: 23878043
Join Date: Jan 2012
Location: Australia
Device: Kobo: Not just an eReader, it's an adventure!
|
Quote:
Generally, you'd use a <h1> (or other heading level) tag to delineate the chapter heading. This is fine and wonderful, but rather then using the CSS to define what the <h1> tag looks like, they do this: <h1 class="c1"> What's worse is when this is defined as <div class="c1">, which removes all content from the equation. By embedding CSS classes in all (or almost all) of the HTML tags, the designers are tying the book vary tightly to the formatting. Which is what CSS is supposed to prevent. If you used simple tags <p>, and move the formatting into the CSS (p {text-indent: 1em;}, then all you have to do to change the formatting is change the CSS file. |
|
![]() |
![]() |
![]() |
#84 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,688
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'd much rather have html that is formatted/styled with idiotic, terrible css than to have html littered with empty paragraphs for margin-(toplbottom) and inline styling. At least the former can be fixed relatively easily/quickly. It's usually easier to scrap the latter and start from scratch.
|
![]() |
![]() |
![]() |
#85 | |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
This is probably a more appropriate topic for discussion in the "ePub" forum, though. |
|
![]() |
![]() |
![]() |
#86 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 631
Karma: 7544528
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#87 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,964
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Most eBooks use a simple formatting and it's very easy to do it correctly. A simple CSS is what's needed. It's actually easier to do it right than it is to do it the way the publisher's do it. |
|
![]() |
![]() |
![]() |
#88 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,168
Karma: 37800000
Join Date: Jan 2010
Location: Walton-on-Thames, Surrey, England, UK
Device: Kindle Keyboard 3G, Kindle Fire 2, NOOK ST, Kindle HDX, Fire 7"
|
Damn you all BTW.
I got a nice new ebook and noticed that the first line (only) of the paragraph after a scene-separator was set in small caps so I had to change the font size to check that this worked right. And it did, but I was supposed to be reading not deconstructing the formatting. |
![]() |
![]() |
![]() |
#89 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,688
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Put the editor down and back away slowly.
![]() |
![]() |
![]() |
![]() |
#90 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,361
Karma: 20212223
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with poor chapter headings needed | cager | Editor | 24 | 05-13-2014 05:49 AM |
Poor formatting for Kindle Paperwhite | apgm | Calibre | 8 | 09-13-2013 08:07 AM |
Formatting Chapter Breaks? | NVash | Calibre | 3 | 12-09-2010 05:09 AM |
Honor Harrington poor formatting? | PKFFW | General Discussions | 18 | 11-14-2010 04:04 PM |