View Single Post
Old 12-12-2010, 06:51 PM   #3
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,809
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:
Originally Posted by Toxaris View Post
For centering an image you could use somethin like:
Code:
<p><div align="center"><img ..../></div></p>
or
Code:
<p class="center"><img .../></p>
For the latter of course you have to enter the class center in your CSS stylesheet. Since Sigil changes a lot between version, I wouldn't be surprised that the sgc-1 doesn't work anymore. But Valloric could confirm if this is the case.

You're second point can be a problem of a too large image or hard-defined page-breaks. I do not know how stanza works, but you could try to fiddle with CSS elements like 'page-break-before: never' or alike.
AFAIK
SGC-x are not standardized assignments
and don't exist on the page until you press one of the styling buttons.
And THEN, it only exists for the PAGE that it was used upon at that time.
If you make some othe styling (combination) on a different Page before you use the "center text" style, that will get assigned SGC-1

SGC styles are added to the Page <head> section, not the stylesheet.

I found this out, because I styled the chapter headings on one page , and use S & R regex to change all the other "Chapter headings to habve the same 'code'. Only, none of the other pages worked, even though the Code was correct.
Turns out: SGC codes are not Global.
theducks is online now   Reply With Quote