|
|
#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?
|
|
|
|
|
|
#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. |
|
|
|
|
|
#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.
|
|
|
|
|
|
#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. |
|
|
|
|
|
#5 | |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,397
Karma: 20212733
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:
|
|
|
|
|
|
|
#6 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,570
Karma: 20150435
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;
}
|
|
|
|
|
|
#7 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 447222
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 |
|
|
|
|
|
|
#8 | ||
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29
Karma: 6366
Join Date: Oct 2011
Device: Sigil
|
Quote:
Quote:
|
||
|
|
|
|
|
#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.
|
|
|
|
|
|
|
#10 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,264
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#11 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,772
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
|
|
|
|
#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.
|
|
|
|
|
|
#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 |
|
|
|
|
|
|
#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? |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Empty heading | Elle518 | ePub | 4 | 05-01-2012 12:24 PM |
| Keyboard shortcuts for heading styles? | Tryphan | Sigil | 4 | 09-26-2011 07:54 AM |
| Recomendation about Heading in Sigil | sergiodongala | Sigil | 6 | 07-06-2011 09:12 PM |
| yet another heading question | jhempel24 | Sigil | 3 | 11-25-2010 08:58 AM |
| Kindle Heading to Best Buy | kindle79 | Amazon Kindle | 2 | 09-09-2010 05:22 PM |