Quote:
Originally Posted by SeaCanary
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"