View Single Post
Old 10-22-2009, 04:13 PM   #1
ghostyjack
Guru
ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.ghostyjack ought to be getting tired of karma fortunes by now.
 
ghostyjack's Avatar
 
Posts: 718
Karma: 1085604
Join Date: Mar 2009
Location: Bristol, England
Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7
Header loosing centering when changing views

I was wondering if anyone was also seeing this.

At the top of my page in book view I create the title and set it with a h1 tag. I then center it. It all looks fine.

Later after editing the content of the book using a mix of the views (depending on which view is easier for the specific type of editing), I then go back to the top of the book and find that the title that should be centered is now on the left.

I re-center it and carry on working. Later I go back to the top and find the title has again moved to the left.

I look at the title in code view and find this:

h2.sgc-4 {text-align: center;}

<h1 class="sgc-4">Title</h1>

I've taken the corresponding text from the file to show you. Now if I'm reading the code correctly, shouldn't the sigil class have h1 in it and not h2?

Also if I re-center the title and look at the code again, I'll find the code will look like: <h1 class="sgc-4 sgc-4">Title</h1>

As far as I can tell h2.sgc-4 {text-align: center;} is for when I center a h2 tag and not a h1 tag. So why am I not getting a h1 sigil class being generated.
ghostyjack is offline   Reply With Quote