View Single Post
Old 12-06-2010, 10:31 PM   #2
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Well to try and keep this simple:

Open Sigil, at the left hand side you will see a bunch of folder icons. RIGHT click on Styles, select "Add New Item." This will create a BLANK stylesheet. DOUBLE LEFT click to open that up and paste the following from the code box below:

Code:
@namespace h "http://www.w3.org/1999/xhtml";

/* defines page margins for all display pages: top right bottom left*/
@page { margin: 15px 0px 0px 0px; }

/* heading tag one, I use this for book titles */
h1 {
text-align: center;
font-size: 1.5em;
padding: 0;
margin: 5px 0 0 0;
}

/* heading tag two, I use this one for chapter titles */
h2 {
text-align: left;
page-break-before: always;
font-size: 1.2em;
padding: 0;
margin: 10px 0 0 0;
}

/* your paragraph tag, wrap your paragraphs with it */
p {
text-indent: 25px;
text-align: justify;
padding: 0;
margin: 6px 0 0 0;
}
Now go to the page labled Section0001.html, select CODE VIEW and paste in the following UNDER <title></title> and ABOVE </head>:
Code:
  <link href="../Styles/style0001.css" rel="stylesheet" type="text/css" />
That about covers the basics of linking a style sheet. You MUST do that second part with every .html or .xhtml page you create.
Danger is offline   Reply With Quote