05-03-2013, 11:51 AM | #1 |
Enthusiast
Posts: 29
Karma: 6366
Join Date: Oct 2011
Device: Sigil
|
Modifying H1-H6 Heading Styles
Is it possible to modify the default values for the H1-H6 Heading styles?
|
05-03-2013, 12:11 PM | #2 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Yes.
In your CSS file you can do things like: Code:
h1 { margin-top:3em; font-size:2em; text-align:centre; } In the same way, you can pretty much modify the behavior of every single tag available. |
05-03-2013, 12:40 PM | #3 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
In BookView you cannot.
|
05-03-2013, 01:03 PM | #4 |
Enthusiast
Posts: 29
Karma: 6366
Join Date: Oct 2011
Device: Sigil
|
No. Of course not. But the code and suggested by GhostyJack looks right on.
And for anyone else looking in on this thread; I think, for each book (xhtml file), you have to right click in the Book Browser pane, and link the css to each file manually. PS: Even thought I like the ease of Book View, I always check to code to make sure it is as clean as possible. |
05-03-2013, 01:23 PM | #5 | |
A Hairy Wizard
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
|
|
05-03-2013, 03:07 PM | #6 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
You can also do something like:
Code:
h1, h2, h3, h4, h5, h6 { color: red; } |
05-03-2013, 05:56 PM | #7 | |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Quote:
BTW, I just uncovered a nice Sigil feature that I didn't know was there: in CV a right-click on a tag's class="something' will take you to the CSS definition. Kudo's to the developers for thinking of us Paul |
|
05-03-2013, 06:09 PM | #8 | ||
Enthusiast
Posts: 29
Karma: 6366
Join Date: Oct 2011
Device: Sigil
|
Quote:
Quote:
|
||
05-04-2013, 10:52 AM | #9 | |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Quote:
Being English I have a habit of using "centre" instead of "center" for my tags. Which is fine for the tag name, but plays merry hell when I make the mistake of putting it in as a tags attribute. Life would be much simpler if we all spoke the same variant of English, British English of course. |
|
05-04-2013, 11:21 AM | #10 |
Well trained by Cats
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
05-04-2013, 11:42 AM | #11 |
Resident Curmudgeon
Posts: 73,976
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have a much better idea. Let's send everyone in the USA who has a southern accent to the UK to change their variation of English into some variation of redneck.
|
05-04-2013, 11:50 AM | #12 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
Well seeing as I'm in Bristol in the U.K. - which is in the west-country, anyone you send our way will most likely end up either talking like a farmer or a pirate.
|
05-04-2013, 07:26 PM | #13 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
05-05-2013, 05:17 PM | #14 |
Guru
Posts: 718
Karma: 1085610
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
|
If it isn't broke, don't fix it.
Now where did I park the horse and cart? |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Empty heading | Elle518 | ePub | 4 | 05-01-2012 11:24 AM |
Keyboard shortcuts for heading styles? | Tryphan | Sigil | 4 | 09-26-2011 06:54 AM |
Recomendation about Heading in Sigil | sergiodongala | Sigil | 6 | 07-06-2011 08:12 PM |
yet another heading question | jhempel24 | Sigil | 3 | 11-25-2010 07:58 AM |
Kindle Heading to Best Buy | kindle79 | Amazon Kindle | 2 | 09-09-2010 04:22 PM |