11-16-2013, 04:53 AM | #1 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
h1 heading tags can't be styled via stylsheet
I've just installed Sigil 0.7.4 and I'm in the process of creating my first epub in that version, but for some reason I am unable to style the h1 tags via the stylesheet. I've tried everything I can think of to fix this. The h2 tags can be styled using the stylesheet, but the h1 headings can only be styled if the attributes are applied directly to the tags.
This is what is in the stylesheet: Code:
h1 { text-align: center; font-size: 200%; } |
11-16-2013, 06:53 AM | #2 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Works fine on my Windows machine. What's your OS?
Did you by any chance also apply <span> tags to the text inside of the <h1> tags? If so, the <span> definition will override any h1 styles. |
11-16-2013, 07:00 AM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Is the stylesheet linked to the section in question?
That was how it did not work until I remembered to do that. |
11-16-2013, 07:01 AM | #4 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Windows XP - but I've also added a new page since and I notice that the css in the stylesheet has no effect on the unordered list I have in it - even though it works on previously created pages. This seems to be something to do with changes made to the files in Sigil not taking effect. Perhaps what I need is some sort of 'refresh' option.
|
11-16-2013, 07:04 AM | #5 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Do you know what, mrmikel, you've just presented me with one of those 'doh!' moments
It has been so long since I last created an epub that I'd entirely overlooked the stylesheet link! I am getting old and forgetful. I will change that now and report back. |
11-16-2013, 07:23 AM | #6 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Nope! Still having the same issue with the h1 tags. Only those that have the attributes within the tags will display properly - the stylesheet doesn't appear to be having an impact on them. Strange! Unless I making some other fundamental blunder.
|
11-16-2013, 07:59 AM | #7 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Mystery solved. For some reason I had my css wrapped in <-- and --> - once they were removed from the stylesheet the h1 tags centred and all was well.
|
11-16-2013, 09:48 AM | #8 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I spent a hour lately trying to figure out why I couldn't style my superscript as a class, when I looked finally at the period in front of it. I didn't need to add class in the HTML, the superscript itself was already being styled!
Glad you figured it out! |
11-16-2013, 11:09 AM | #9 |
Zealot
Posts: 104
Karma: 20
Join Date: Jun 2011
Location: County Down, Northern Ireland
Device: none
|
Thanks! These things seem to happen to me more and more frequently the older I get - 'senior moments', as it were. And the speed at which I can forget stuff is rather alarming!
|
11-16-2013, 09:15 PM | #10 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
yeah, tell me about it... It seems as we mature, our minds tend to work in higher, more complex dimensions, rather than the more mundane. Umm, yeah, that's it. Yep.
|
11-17-2013, 06:25 AM | #11 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Yup, I was contemplating the physics of hyperspace. Now if I could only find my pants! ROTFL See the movie, "The More the Merrier."
|
11-17-2013, 10:34 AM | #12 | |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I am having trouble remembering what I have forgotten Anyone seen where I left my coffee cup? |
|
11-20-2013, 06:21 AM | #13 |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Some would do anything to forget ...
But do not worry: internet will never forget you |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Empty heading | Elle518 | ePub | 4 | 05-01-2012 11:24 AM |
The Newer Cthulhu-Styled Mythos Novels | Dr. Drib | Reading Recommendations | 2 | 04-09-2012 03:06 PM |
Amazon Tags - Popular tags vs Unique tags. | chrisanthropic | Writers' Corner | 6 | 09-19-2011 11:18 PM |
yet another heading question | jhempel24 | Sigil | 3 | 11-25-2010 07:58 AM |
Styled text extends off screen | Robotech_Master | Calibre | 1 | 06-07-2009 02:06 PM |