View Single Post
Old 04-14-2015, 07:52 PM   #23
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
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:
Originally Posted by Notjohn View Post
Oliver, your basic problem is piling in-line styles on top of the style sheet. See Diap's first reply for the way out of the wilderness. Instead of

<p align="center"><b>INTRODUCTION</b></p>

You can use

<p class="center"><b>INTRODUCTION</b></p>

and get the exact result you are seeking. p class calls upon the appropriate paragraph style in the style sheet.

However, I probably would have used:

<h2>Introduction</h2>

instead. If you refer to the style sheet, you'll see that that would yield a centered and italicized (and effectively boldfaced) heading half again as large as the body text, which IMHO is more desirable than all caps. Or if you want a smaller heading, you could substitute h3.
I feel compelled to note that heading styles should NOT be used in lieu of properly-formatted STYLING. Headers are not for stylistic purposes. I have seen this used, randomly and incorrectly, in far too many eBooks. It's particularly rampant in books that have (obviously) been coded in India, who fall prey to this particular wrongness.

Headers are not for looks. Headers are structural. ELEMENTS are structural. A word, for example, is subordinate to a sentence; a sentence is subordinate to a paragraph; the paragraph to the first heading in which it is enclosed, etc. This is one of the first things that Cap taught me, way back, when I first ventured into ePUBs, rather than MOBI. Id' used header styling (for something, it's been so many years, I can't recall now--pre-2010, for a certainty) and I was sternly lectured. Rightly so.

Headers tell documents--I don't care whether we're talking about Word, LibreOffice, OO, Scrivener, Bob's Big Word Processor, ePUBs, MOBI's, etc., that this particular element defines a structural part of a document. An H2, for example, is not necessarily smaller than an H1; but it is subordinate to it in the structure of the document. You can make an H2 LOOK any way you want it to; you could make it twice the size of an H1, for that matter.

Do not think about how something LOOKS, particularly when you use headings; think about what it IS. The SELECTOR (p, h1, blockquote) is what something IS, and how it relates, structurally, to the entire file/document. The DECLARATION (color:red;text-align:center to mooch from w3schools, tells the document what the ELEMENT looks like.

SEE? This is a PARAGRAPH, no matter how BIG IT IS.

PLEASE, oiver: do not use headings, blockquotes, etc., in lieu of proper styling, just to achieve an appearance. That's incorrect coding.

</lecture>

Quote:
I think you need to get a basic understanding of HTML and CSS.

Take a read through Pablo's My Quick and Dirty ePub Tutorial. (While it covers an older version of Sigil, the basics are still applicable).
^^^ + 100

Is there any damned way we can make this STICKY, at the top of the forum? Or move these "I don't know anything about html/css/ePUB" threads to the Workshop, where they belong? That's where folks ought to be, who don't know anything about HTML or CSS. It's not banishment; I'm not trying to be mean, or cranky; it's just that they're likely to get more help, over there, than here, as that's what it's for, and the posters there are looking to answer just these types of questions. I've just spent 30 minutes reading through the Sigil forums, and about 80% of the new(ish) posts have NOTHING to do with Sigil; they're basic HTML/CSS/how-to-make-an-ePUB type questions. I mean, one of them was a question about tables, and it turned out the poster's CSS was all Calibre classes!

Ducks, my one Twoo wuv, perhaps you could consider a sticky, telling folks to take beginner questions to the beginner's forum? ?????

Hitch
Hitch is offline   Reply With Quote