View Single Post
Old 08-21-2010, 11:46 AM   #2
theducks
Staff to 4 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: 10,697
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
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?
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
theducks is online now   Reply With Quote
 
Enthusiast