Register Guidelines E-Books Search Today's Posts Mark Forums Read

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
Book Twiddler
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,029
Karma: 1424487
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
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: 2,961
Karma: 3427611
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
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
Grand Sorcerer
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: 14,645
Karma: 5629001
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 03-04-2013, 02:44 PM   #6
Notjohn
Addict
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: 212
Karma: 246332
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: 37,084
Karma: 18147936
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:33 AM.


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