08-21-2010, 10:12 AM | #1 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
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 10:35 AM. |
08-21-2010, 11:46 AM | #2 | |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Do you even show a Stylesheet in the book browser list? |
|
Advert | |
|
08-21-2010, 11:52 AM | #3 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Yes I did. There is a style.css in the package, but no xhtml code refer to it
|
08-21-2010, 12:02 PM | #4 |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
08-21-2010, 12:14 PM | #5 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
nope,I didn't see anything changed in code when I played around the css file name.
|
Advert | |
|
08-21-2010, 02:40 PM | #6 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
08-21-2010, 10:30 PM | #7 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Hi Valloric
Do you mean I need to add the code into every xthml file manuall? Cheers |
08-22-2010, 05:57 AM | #8 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
08-22-2010, 09:06 AM | #9 |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Last edited by droople; 08-22-2010 at 09:22 AM. |
08-22-2010, 11:04 AM | #10 |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
46 Chapters! Piece of Chocolate
Do it once. TEST it! then (Code View): Search for the string(s) just before where you want it. Replace (all HTML files), with those string(s) AND your new style link ( hint: you can select from your tested code page, right-click-copy and paste that into the "Replace" box.) I prefer to do Replace instead of "Replace All. I do a "Save" about every 8 pages, Just in case |
08-22-2010, 11:43 AM | #11 | |
Connoisseur
Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Quote:
|
|
08-22-2010, 01:35 PM | #12 |
Well trained by Cats
Posts: 30,377
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 06:35 AM |
Sheet Music Now Available for Kindle | Gideon | News | 19 | 03-29-2010 04:52 AM |
Revised FAQ sheet coming | Robertb | Astak EZReader | 0 | 02-09-2010 02:57 PM |
A (Sheet) Music Reader | RWood | News | 14 | 06-02-2008 04:24 AM |