View Single Post
Old 10-29-2013, 09:16 PM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by blackxacto View Post
Opened an ebook in Sigil 0.7.4

Selected Styles/Stylesheet.css

I see several styles, example: .calibre1, .calibre11

I see paragraph headings: H1, H2 etc.

What is the difference in the two style types above?

If I want to make a certain subhead always center, do I change the paragraph, or the associated .calibre#? In the sample below, where is the "center" instructions to go?

.calibre11 {
display: block;
font-size: 1.125em;
font-weight: bold;
line-height: 1.2;
margin: 3em 0 1em
}
Add to the style you posted, the following:

Code:
.calibre11 {
    text-align: center;  /* new property to add */
    text-indent: 0;  /* new property to add */
    display: block;
    font-size: 1.125em;
    font-weight: bold;
    line-height: 1.2;
    margin: 3em 0 1em
}
After that, all text with the style "calibre11" will be centered.

Regards
Rubén
RbnJrg is offline   Reply With Quote