![]() |
#16 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 698
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#17 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
If I can't write <p style='text-indent:.3in'> in a file intended as an epub, I will of course substitute <p> for the thousand or so iterations of that indent. But how do I then define the <p> in the stylesheet?
.p { text-indent:.3in; } ? (Sorry, never paid much attention to stylesheets before!) |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
p { text-indent: 0.3in; }
(note no dot) styles all <p> tags p.noindent { text-indent: 0; } styles only <p> tags with a "noindent" class, i.e., <p class="noindent"> |
![]() |
![]() |
![]() |
#19 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
paragraph 'style'
Quote:
I'd like to hit upon a tag that works easily both for Kindle and for epub. Can I just substitute <p width='.3in'> or something similar? That would be a simple switch. Thanks! Glad I found this forum. It's not so easy, making the conversion from Kindle to epub. |
|
![]() |
![]() |
![]() |
#20 |
Created Sigil, FlightCrew
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
|
Well, AFAICS FBReader doesn't ignore all CSS rules. In fact I sometimes have to edit an epub to comment out some css rules so that I can control them on the fly from FBReader's settings (e.g. paragraph space before/after, line height.. etc).
FWIW I am running the latest svn snapshot of FBReader. |
![]() |
![]() |
![]() |
#22 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Why not? It does work. The horizontal rule shows up in both Calibre's viewer and on my iPod Touch. Or are you simply saying it's not standard and could possibly cause issues with the epub file in the future? I do not know coding which is why I like Sigil's wysiwig interface as well as the simple solution for a horizontal rule. |
|
![]() |
![]() |
![]() |
#23 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
|
|
![]() |
![]() |
![]() |
#24 | |
♫
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 661
Karma: 506380
Join Date: Aug 2010
Location: Germany
Device: Kobo Aura / PB Lux 2 / Bookeen Frontlight / Kobo Mini / Nook Color
|
Quote:
Enhance the STYLE comment with the hr command, like this: <style type="text/css"> hr {width:35%} </style> (you will probably see more statments there) If you do that you can just use <hr /> in your documents, and everything is valid. |
|
![]() |
![]() |
![]() |
#25 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#26 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
hr.ch{ /* text-align: center; */ color: black; background-color: black; width: 25%; height: 5px; border: 0 } note I defined a HR class of ch /*chapter head */ <hr class-"ch" /> that allows for other uses of HR with different attributes Also not that you can not center(or other alignment) a HR in (buggy)ADE this way :( You need to wrap the in a centered <div class+"centered"> <hr /> </div> |
|
![]() |
![]() |
![]() |
#27 | |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Quote:
Okay, FBReader ignores nearly all CSS. What it doesn't do is present a document largely as it has been styled. Whatever it does obey is probably just a way to annoy those people who aren't annoyed enough by what it ignores. |
|
![]() |
![]() |
![]() |
#28 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
theducks, thanks for the clarification and the code. That's easier.
|
![]() |
![]() |
![]() |
#29 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 1110435
Join Date: Jul 2010
Location: Shanghai, China
Device: Sibrary G5
|
Also not true. FBReader is one of the viewers I use regularly to check my work. I use stylesheets for all my styling (even the stuff Sigil puts in headers eventually gets moved to a stylesheet), and FBReader adequately displays almost everything I do. No it doesn't support the full CSS spec, but I've yet to find a viewer that does (save for Ibis or Bookworm, but those are online apps).
Quote:
--Nathanael |
|
![]() |
![]() |
![]() |
#30 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 1110435
Join Date: Jul 2010
Location: Shanghai, China
Device: Sibrary G5
|
Quote:
--Nathanael |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
TOC Creation & Calibre vs. MobiPocket | Themus | Calibre | 8 | 05-15-2010 11:32 AM |
Epub to Mobi & TOC | Nate the great | Calibre | 12 | 10-01-2009 03:33 PM |
More TOC questions | AlexBell | Calibre | 24 | 08-12-2009 02:59 AM |
PDF & TOC on Calibre | thibaulthalpern | Calibre | 3 | 04-18-2009 03:45 PM |
Bood Designer - horizontal bars & TOC editing | DoctorBri | Sony Reader | 5 | 09-17-2007 10:33 AM |