|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
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. |
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,276
Karma: 62000000
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 | |
|
|
|
|
#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
|
|
|
|
|
|
#4 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,276
Karma: 62000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#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 | |
|
|
|
|
#6 | |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
|
|
|
|
|
|
|
#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 |
|
|
|
|
|
#8 |
|
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
|
|
|
|
|
#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 10:22 AM. |
|
|
|
|
|
#10 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,276
Karma: 62000000
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
|
|
|
|
|
|
#11 | |
|
Connoisseur
![]() ![]() ![]() ![]() Posts: 95
Karma: 388
Join Date: Jan 2010
Device: Nook,Nook Simple Touch, Nook Color
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,276
Karma: 62000000
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 07:35 AM |
| Sheet Music Now Available for Kindle | Gideon | News | 19 | 03-29-2010 05:52 AM |
| Revised FAQ sheet coming | Robertb | Astak EZReader | 0 | 02-09-2010 03:57 PM |
| A (Sheet) Music Reader | RWood | News | 14 | 06-02-2008 05:24 AM |