![]() |
#16 | |
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:
Okay, so...in less strident tones, it was, in fact, someone that I met here, back 9-10 years ago, that "learned me not to do that." In a PDF, at least, before now, it didn't matter if you used a heading style for text formatting. A PDF really only cared what something LOOKED like, not what it was. (Altho, this is a bad comparison, as PDFs do not spring into existence full-grown, like Pegasus from the head of Medusa; thus, these things did matter, but bear with me.) But it does matter in Word, in all word-processors, html and ebooks. Why? Because headings are structural, not decorative. They mean something. An h1, for example, is more "important" than an h2. An h3 is less important than that same h2. The use of headings informs the document about the overall structure of the file. Think of an outline. That's the relevance of headings, in a word. If you want to see the relevance of headings, and why you oughtn't use them for decoration, take a tutorial or class in using Word's built-in Styles and Headings. Let's see...start with this one, I guess: http://www.addbalance.com/usersguide...dingStyles.htm and there are numerous courses online. But the shorter answer is, they're structural. They have NOTHING to do with how text looks. Nothing at all. You tell a given style how text looks, not its heading style. To understand all of this, you need to learn about Word's built-in styles and then move to headings. Don't say "I don't use Word," the same concepts apply to all word processors whether they are Atlantis or OO or LO or Word or Wordperfect. Good luck. Hitch |
|
![]() |
![]() |
![]() |
#17 | |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
I'm also wondering about the best/safest way to set up what I think of as boxes/blocks that go between paragraphs. I was following the guidelines of standardebooks.org and using blockquotes for everything until tex2002ans pointed out the error of my ways. I couldn't think of a way to make a generic inter-paragraph block with a div since divs can be used in other ways as well so I didn't want to attach any css to a plain div. Then I saw a response on stackexchange about how you can attach several classes to an html tag so now in my css I have div.block for the generic block div, and for the other ones, div.letter (italics), div.notice (sans-serif), etc., and in my html I use 'div class="block letter"'. I think another way to set up the generic div would be to use something like 'div.letter, div.notice, etc. { generic div block stuff here }' and then, as before, div.notice would have stuff specific to it. An important goal for me is to design the css so that I can use as few classes as possible in the html. So that means combinators, +, >, space, etc. Again, I'm not sure how portable that is. Last edited by lumpynose; 08-11-2019 at 04:37 PM. |
|
![]() |
![]() |
![]() |
#19 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Thanks, got the message loud and clear
![]() Quote:
I have learnt the error of my ways! |
|
![]() |
![]() |
![]() |
#20 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I avoid sequential H tags (eg chapter number, chapter title) because the non-wary till end up with a Calibre conversion splitting the file there
I prefer to use a span class= around the title part (allows it to be styled differently) and use a <br />to split the lines Works nice for header based auto-generated TOC ![]() Hitch probably has a case where this would be frowned upon ![]() |
![]() |
![]() |
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
One thing that I found out is that instead of having to do the math for the size of the text, as DNSB explains, instead of em I use rem; root em. |
|
![]() |
![]() |
![]() |
#22 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
What exasctly do you mean with "sequential" H tags. And does Claibre really breaks a page at every H-tag, even H6? Another reason not to use it.
|
![]() |
![]() |
![]() |
#23 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#24 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 168
Karma: 10010
Join Date: Oct 2018
Device: Tolino/PRS 650/Tablet
|
Ok, more preciously asked: what is the difference between H-Tags and sequential H-Tags?
|
![]() |
![]() |
![]() |
#25 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#26 | |
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:
Chapter One (H1) It Was A Dark And Stormy Night (h2) (or H1) When you try to format TOCs, automatically, that sort of thing can bollix up the layout AND semantically, it's somewhat wrong. After all, from a structural standpoint, the chapter number-title is a single point; the chapter "head." Right? There isn't outline difference between the two; the title isn't a subhead to the chapter number. Ducky--I have no problem with how you do that, using spans or whatever. It's "more correct" than using a heading class for it, IMHO. Some people "solve" it by wrapping the entire kit and kaboodle in a heading tag and using a break, but we all know the problems inherent in that. @Lumpy: When the goal is to have very short CSS--which is in and of itself, a good goal--you can end up doing what standardebooks.org does, which is using combinators, but there's a huge blind spot there, with the assumption that those will work, no matter what. I'm the first to admit that I'm overly-aware of the older devices, due to my work and constant attention to the older Amazon Kindles, but KF7 devices won't pay a lick of attention to a combined class. I downloaded Sayers' "Whose Body," for example and I see that in their ePUB3 (which was allegedly their ePUB2.0, mind you) they used first-child inside a blockquote coupled with breaks to create two lines of verse. To me, that's somewhat make-work. Why not use a simple indented paragraph class instead? (Yes, someone could argue that semantically, lines of a poem are more "blockquote" than paragraph, but...c'mon...). They used the same coding for LPW's business card, handed to someone. thus, it's their "go-to" for anything that they feel should be indented and set off with vertical whitespace above and below the cited text. So...you know, one of the reasons that it's hard for formatting companies to "fix" other businesses' or individuals' formatting is just that--HTML and CSS are very individualized. Sure, a p is a p, and all that, but by the time you figure out what someone else has done, it's cheaper to redo the whole damn book. Hitch |
|
![]() |
![]() |
![]() |
#27 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#28 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
|
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
My goal isn't to have short CSS but to have as little as needed in the html, which admittedly does require combinators. So for example, that's why I love the p+p thing for indented paragraphs instead of the usual p class="noindent" for the nonindented ones, or listing all the various places where you don't want it indented. (I learned about p+p here.)
Another goal is to have css that's relatively easy to change for people who don't like my style, which is ragged right and indented and no white space between paragraphs. I now have a comment at the top of the css which directs them to the bottom where they can uncomment a few lines to change those things. |
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pagestyle.css extra / integrated in stylesheet.css / or not at all? | chaot | Workshop | 14 | 02-24-2017 11:10 PM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | Kindle Books (offline) | 0 | 02-22-2011 06:05 AM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | ePub Books (offline) | 0 | 02-22-2011 06:03 AM |
Mystery and Crime Adams, Herbert: Exit the Skeleton. V1. 22 Feb 2011 | crutledge | BBeB/LRF Books (offline) | 0 | 02-22-2011 06:01 AM |
css pseudo elements and adjacent combinators in extra css? | ldolse | Calibre | 2 | 12-21-2010 05:09 PM |