View Single Post
Old 01-28-2014, 03:21 PM   #2
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: 31,101
Karma: 60358908
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 SeaCanary View Post
I built an epub file that has many html files in it. Every html file has the following code.
Code:
<head>
  <title>Only Remembered</title>
  <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
  <link href="../Styles/page_styles.css" rel="stylesheet" type="text/css"/>
  
<style type="text/css">
  h2.sgc-1 {text-align: center;}
  h3.sgc-2 {text-align: center;}
  body.sgc-3 {word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;}
</style>
</head>
Can I put the code in the style section in just one place in the epub document or does it have to be in each html file.?
Put it where it belongs: The stylesheet, then link the stylesheet to all the needed files.

Note: SGC Page styling as you show is NOT transferable between pages.

SGS# are assigned in the order used ON THAT FILE
so on one page SGC-1 might be used by:
h3.SGC-1 {text-align:center; font-style: italic; }
and another page
h2.SGC-1 {text-align:center; font-weight: bold; }


Create your own style selectors and replace the each class="with newname"
theducks is online now   Reply With Quote