![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The CSS class WILL center the text, however, you have to DEFINE the class before it is usable.
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And link the CSS file to the appropriate (x)html files. So they know they're supposed to governed by it.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 120648
Join Date: Feb 2015
Device: kindle
|
WOW!!! I never knew you had to link the css, I figured it just knew to use the css.
It Works and on top of that all my paragraph indents are there instead of everything looking justified. I will take a look through the Quick and Dirty tut and save it will all my other tuts. Thanks yet again ![]() |
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Now you're cooking with gas!
![]() |
![]() |
![]() |
![]() |
#20 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,158
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Sometimes Sigil will also add a fresh new style to the CSS to cover just such a situation. Again, no harm done, and indeed there may be a good reason for it. Sigil is a wonderful software, and the help on this forum is likewise without price, if sometimes over one's head. |
|
![]() |
![]() |
![]() |
#22 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43
Karma: 120648
Join Date: Feb 2015
Device: kindle
|
I have a new question but I'm going to start a new thread as it will be a new topic. Thanks for all the help
|
![]() |
![]() |
![]() |
#23 | ||
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:
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 ![]() 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:
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 |
||
![]() |
![]() |
![]() |
#24 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() IMHO xHTML/CSS questions probably belong in EPUB and it would not hurt for THAT to have a 'beginners' sub forum |
|
![]() |
![]() |
![]() |
#25 | ||
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:
ETA: the description/sub-heading for the Workshop says: Quote:
Hitch Last edited by Hitch; 04-14-2015 at 08:24 PM. Reason: Added my ETA: comment. |
||
![]() |
![]() |
![]() |
#26 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#27 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
That is also part of the reason why I detest the <em> and <strong> tags over the <i> and <b> tags. The one is about structure, the other about styling and mean something different. They are not the same! I don't mind the tags themselves, but their incorrect usage. |
|
![]() |
![]() |
![]() |
#28 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
(Actually, I mind the tags, and I never use them. It's <i> and <b> for me!) |
|
![]() |
![]() |
![]() |
#29 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#30 | ||
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
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:
I understand that it equates to the same thing, but using the <em> and <strong> tags is structurally correct at the same time allowing me to style them with css. The argument being that I could easily change the style by changing the css. I know that the vast majority of ePub 2 devices default to italic/bold, but if I wanted to enable options for an audible device...ie <em> = slightly louder volume (or something) then I would have to go and change all of those <i> tags if I had used them since they are a purely visual style. Also if I have a word that needs to be emphasized within a paragraph of italic text, then the emphasis would have to be styled differently than just <i>...I could use "em em {font-style:normal; font-weight:600}" (or something). Also according to the W3 Schools website: Quote:
Last edited by Turtle91; 04-15-2015 at 01:58 PM. |
||
![]() |
![]() |
![]() |
Tags |
proofread, validator error |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Clean conversion BUT many errors in Epub Validator | Peerie | Conversion | 3 | 12-29-2014 08:28 PM |
Epub Validator Errors for iBooks Producer | tcorsonk | ePub | 0 | 06-11-2014 05:10 PM |
Problems galore | inkedchick | Kobo Tablets | 5 | 09-14-2012 02:32 AM |
Nexus galore | afv011 | Android Devices | 2 | 05-15-2012 10:51 PM |
Unutterably Silly Time of the Season (Rabbits Galore) | RWood | Lounge | 125 | 04-02-2010 04:13 PM |