View Single Post
Old 08-24-2011, 12:45 PM   #145
nrapallo
GuteBook/Mobi2IMP Creator
nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.nrapallo ought to be getting tired of karma fortunes by now.
 
nrapallo's Avatar
 
Posts: 2,956
Karma: 2530531
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
Quote:
Originally Posted by JSWolf View Post
May as well delete that CSS from PG. It's awful.
This is what I've replaced their CSS with after using GuteBook to create an epub ebook without wide margins, page numbers inserted into the text body, large pararagh/section breaks, etc... (Note: the code in Blue at the bottom was inserted by GuteBook to replace any previous style used by PG above it)

Code:
    <style type="text/css">

<!--
    p {  margin-top: .75em;
         text-align: justify;
         text-indent: 1.25em;
         margin-bottom: .75em;
         }

    body { margin-left: 1%; margin-right: 1%; text-align: justify; text-indent: 2em; }

    h1,h2,h3,h4,h5,h6 {
         text-align: center; /* all headings centered */
         clear: both;
         margin: auto;
         }
    hr { width: 33%;
	 margin-top: 2em;
	 margin-bottom: 2em;
         margin-left: auto;
         margin-right: auto;
         clear: both;
       }

table {
    margin-left: auto;
    margin-right: auto;
}

.pagenum { /* uncomment the next line for invisible page numbers */
               position: absolute; right: 2%;
               font-size: 75%;
               color: gray;
               background-color: inherit;
               text-align: right;
               text-indent: 0em;
               font-style: normal;
               font-weight: normal;
               font-variant: normal;}

/* Chapter Start */
    .newpg {page-break-before: always;}
    .firstwords    {font-variant:small-caps;font-size:1.2em;font-weight:bold;}
    .firstLetter{
      display      : block;
      float        : left;
      margin-top   : -0.17em;
      margin-left  : -0.1em;
      margin-right : 0.4em;
      height       : 2em;
      text-indent: 0em;
      }

.firstLetter span{
  font-size    : 3.33em;   /* use 3.33em for two lines */
  line-height  : 1em;
}

.firstLetter + span{
  margin-left  : -1.4em;
}

.chapsub {
     font-size:1.1em;
     font-weight:bold;
     text-align: center;
     font-variant: small-caps;
     text-indent:0em;
     margin-top:.35em;
     margin-bottom:.75em;
     margin-left: 5%;
     margin-right: 5%;}

   .center   {text-align: center;text-indent:0em;}

.smcap    {font-variant: small-caps;}


  .caption {
      font-size: .7em;
      font-weight:bold;
      text-align: left;
      font-family: serif;
      text-indent:0em;
      margin-left:.8em;
      margin-bottom:.2em;
       }

  .captioncenter {
      font-size: .7em;
      font-weight: bold;
      text-align: center;
      font-family: serif;
      margin-top:.2em;
      text-indent:0em;
      margin-left:0em;
       }

  .captionimage {
      font-size: .9em;
      font-weight: bold;
      text-align: center;
      font-family: serif;
      margin-top:.3em;
      text-indent:0em;
      margin-left:0em;
     font-variant: small-caps;
       }

/* Images */
.figcenter   {
    margin: auto;
    text-align: center;
}

   .alignright {
    float: right;
    padding-right: .4em;
    font-style:italic;
    }

/* Footnotes */
  .footnotes        {border: dashed 1px;margin-top:2em;}
  .footnote         {margin-left: 5%; margin-right: 5%; font-size: 0.9em; text-indent: 1.5em;}
  .fnanchor         {vertical-align: super; font-size: .7em; text-decoration: none;}
  .fnanchorchap     {vertical-align: super; font-size: .5em; text-decoration: none;}
  .label { font-size: 1em; font-weight: bold;}


/* Poetry */

.poem {
    margin-left:15%;
    margin-right:15%;
    text-align: left;
}

.poem br {display: none;}

.poem .stanza {margin: 1em 0em 1em 0em;}

.poem span.i0 {
    font-size: .9em;
    display: block;
    margin-left: 2em;
    padding-left: 3em;
    text-indent: -3em;
}

.poem span.i0a {
    font-size: .9em;
    display: block;
    margin-left: 2em;
    padding-left: 2.65em;
    text-indent: -3.00em;
}
.poem span.i2 {
    font-size: .9em;
    display: block;
    margin-left: 3.25em;
    padding-left: 3em;
    text-indent: -3em;
}


  .smaller {font-size:.7em;}
  .toctext {text-align: left;font-size:1em; display: block; padding-left: 1.8em; text-indent: -2.5em;margin-left:1em;}


 .linearound {
                     border-width: 2px;
                     border-style: solid; border-color: black; margin-left:10%;margin-right:10%;
                  }

 .index {
          margin-top:.2em;
          margin-bottom:.2em;
          margin-right:15%;
          margin-left:15%;
          display: block;
          padding-left: 1.8em;
          text-indent: -1.8em;
        }

.indexstart {
          margin-top:.2em;
          margin-bottom:.2em;
          padding-top:.9em;
          margin-right:15%;
          margin-left:15%;
          display: block;
          padding-left: 1.8em;
          text-indent: -1.8em;
         }
 -->

    h1, h2, h3, h4, h5, h6 {text-align: center }
    h2 { page-break-before: always; }
    p {text-indent: 2em; margin-top: 0em; margin-bottom: 0em;  padding-top: 0em; padding-bottom: 0em}
    br {margin-top: 0em; margin-bottom: 0em;  padding-top: 0em; padding-bottom: 0em}
  </style>
nrapallo is offline   Reply With Quote