View Single Post
Old 08-21-2010, 11:12 AM   #1
droople
Connoisseur
droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.droople has a complete set of Star Wars action figures.
 
droople's Avatar
 
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
Question xthml file not refer to style sheet

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>
<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

Last edited by droople; 08-21-2010 at 11:35 AM.
droople is offline   Reply With Quote