Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-03-2013, 06:01 PM   #1
x2far
Junior Member
x2far began at the beginning.
 
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
    }
x2far is offline   Reply With Quote
Old 03-03-2013, 06:38 PM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
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.
mrmikel is offline   Reply With Quote
Advert
Old 03-03-2013, 06:52 PM   #3
x2far
Junior Member
x2far began at the beginning.
 
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.
x2far is offline   Reply With Quote
Old 03-04-2013, 03:32 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
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.
Toxaris is offline   Reply With Quote
Old 03-04-2013, 09:00 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,795
Karma: 54830978
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 */
Sigils 'Go to Link or Style' makes some of the style pain go away without having the tedious task of renaming.
theducks is offline   Reply With Quote
Advert
Old 03-04-2013, 02:44 PM   #6
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
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).
Notjohn is offline   Reply With Quote
Old 03-08-2013, 03:36 AM   #7
x2far
Junior Member
x2far began at the beginning.
 
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.
x2far is offline   Reply With Quote
Old 03-09-2013, 10:09 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,957
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by x2far View Post
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.
Take the 10 ePub files that are merged. Don't convert. Load the merged ePub into Sigil and see what you get. It could be easier to deal with.

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.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:28 PM.


MobileRead.com is a privately owned, operated and funded community.