View Single Post
Old 08-21-2010, 12:46 PM   #2
theducks
Grand Sorcerer
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: 15,098
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by droople View Post
Hi Valloric

I'm trying to define my own font in the epub by add code in style sheet.

After I generate the epub file, I found that all the xthml file not refer to the style sheet.

Here is the code of xthml.


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link rel="stylesheet" href="../Styles/stylesheet.css" type="text/css" />

<style type="text/css">
/*<![CDATA[*/
h2.sgc-1 {text-align: center;}
/*]]>*/
</style>
</head>


I think it's missing line like
<link rel="stylesheet" type="text/css" href="style.css"/>
Did I do something wrong?

Cheers
I placed it yor code in RED, where it normally goes..

Do you even show a Stylesheet in the book browser list?
theducks is offline   Reply With Quote