![]() |
#1 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2012
Device: Kindle Fire, Huawei Android Media Tablet
|
stylesheet issue ... plus dumb user issue
Hi All,
I've pretty much confused myself to the point of no return with my current work document. I truly am a dummy when it comes to creating a nice workflow in Sigil. My problem is that at the start of every chapter I have inserted a divider image under the chapter heading but for some reason I can't seem to center that image properly. I seem to have a mass of css and absolutely not real understanding of what I have created. And as such, every time I make adjustments I just screw up even further. Any help would be appreciated. Cheers Problem Code: Code:
<h2 class="calibre29 sigil_not_in_toc" id="calibre_toc_63"><span class="calibre25"><span class="bold1"><span class="calibre20"><span class="calibre21"><a class="calibre19" id="filepos4649922">CHAPTER 7</a></span></span></span></span></h2> <div class="calibre11" style="text-align:center"><img alt="divider" src="../Images/divider.jpg" /></div> Relevant stylesheet.css for the above: Code:
.calibre11 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.5em } .calibre19 { color: inherit; cursor: inherit; line-height: 1.2; text-decoration: inherit } .calibre2 { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: center; text-indent: 1.5em } .calibre20 { line-height: 1.2 } .calibre21 { color: black; font-size: 0.70588em } .calibre25 { font-size: 1em; line-height: 1.2 } .calibre29 { display: block; font-size: 1.41667em; font-weight: bold; line-height: 1.2; margin-bottom: 0.83em; margin-left: 0; margin-right: 0; margin-top: 0; text-align: center; text-indent: 29px } |
![]() |
![]() |
![]() |
#2 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
You have a couple of things going at once, calibre11 and text-align:center. The latter is enough. calibre11 has a text indent of 1.5 ems. That is throwing it off.
What you might try is to save a copy, use search and replace to remove all of the calibre styling and see what is left and how you like it. If you have html to start with, take it directly into Sigil by adding additional files or opening. That way, no extra stuff from calibre. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2012
Device: Kindle Fire, Huawei Android Media Tablet
|
Excellent!
Thanks very much. That indent was driving me nuts. Cheers for the help. |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Create a new stylesheet with proper (e.g. understandable) names. Get rid of all the Calibre classes, because they only confuse and have more entries than needed. That is one of the issues with using Calibre for conversions. You really need to cleanup afterwards.
|
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,903
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
If you figure out a 'class' purpose, you can always add a comment to it
Code:
.calibre13 { /* song */
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
If you use a separate style sheet, rather than an included one, it won't be duplicated in every chapter. This can add up if you have 30 or 40 "chapters" (which often or usually include single pages such as the title page or an illustration).
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Feb 2012
Device: Kindle Fire, Huawei Android Media Tablet
|
Thanks everyone. This is great.
I'll definitely create a new stylesheet. The current one just seems so bloated. There's 10 epub files merged into one through calibre then converted after that. Too much garbage in there. |
![]() |
![]() |
![]() |
#8 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,125
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for the stylesheet, what I do is take the stylesheet from the Calibre conversion and edit it. That way I can see what the styles are as a make new styles. Also, I remove unused styles so I only have styles that are used. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Novice - Need help with user stylesheet | Dan__ | Library Management | 2 | 01-27-2013 05:59 AM |
Nook Simple Touch Glowlight - technological issue or quality-control issue? | Dr. Drib | Barnes & Noble NOOK | 1 | 12-04-2012 01:32 PM |
Hyperlinks Issue in NLT Bible (ebook or software issue)? | myet01 | Kobo Reader | 5 | 07-29-2011 08:47 AM |
New User, Dumb Question | suzy | Calibre | 17 | 05-04-2010 04:32 AM |
User Stylesheet for Adobe Digital Editions | wallcraft | ePub | 6 | 09-15-2009 03:53 PM |