View Single Post
Old 03-08-2011, 09:26 AM   #3
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,079
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 Toxaris View Post
Ad 1. You can add it by right-clicking on the Styles folder and choose 'add existing item'. The CSS is then added to the ePub.

Specify the epub, but putting the following line between the <head>-tags:
Code:
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
You need to add the class= by hand of course. However, you can use search and replace with some RegEx. That might be useful to save time.
Be absolutely sure to make the part I highlighted in red match the name of your stylesheet in the Styles section

You might also note that you are not limited to a single stylesheet in a EPUB.
The advantage as I see it: You avoid monster size stylesheets, that need to be processed for every segment
Say you have a really complex set of styles that are only used for the 'front matter' (Title page, copyright, raves...) . Give those pages, their own Stylesheet, and the body of the book, it's own: Lean and Mean stylesheet for quicker page rendering.
theducks is offline   Reply With Quote