03-09-2011, 03:26 PM | #1 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Aug 2010
Device: ipod touch
|
Re: Aldiko ignoring style sheet property?
Hi,
I use a simple style sheet for my Epubs that includes the following properties: p{text-indent:0;margin-left) However, Aldiko (Premium 2.0) still indents all my paragraphs. Is there something I can do to force Aldiko to NOT indent my paragraphs? P.S. I have definitely specified the correct setting in Aldiko to enable use of a "publisher's style sheet". Thanks. |
03-09-2011, 07:10 PM | #2 | |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
some reader-software ignore the whole mess if they hit an error Code:
p{text-indent:0;margin-left: 0)
|
|
Advert | |
|
03-09-2011, 10:54 PM | #3 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Aug 2010
Device: ipod touch
|
Hi, thanks for your reply.
I typed the original comment below incorrectly. I wanted to keep it brief and to highlight the obvious properties. The actually entry in my epub is below. p{text-indent:0;margin-left:0;margin-right:0;margin-top:.18em;margin-bottom:.18em;font-family:"Times New Roman",serif;font-size:100%;letter-spacing:.045em} |
03-10-2011, 05:58 AM | #4 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Try:
Code:
p{ text-indent:0 !important; margin-left:0; margin-right:0; margin-top:.18em; margin-bottom:.18em; font-family:"Times New Roman",serif; font-size:1em; letter-spacing:.045em; } Be careful, some readers will not like the !important tag, but some reading apps (aldiko, Stanza) will not play nice otherwise. Last edited by Toxaris; 03-10-2011 at 06:03 AM. |
03-10-2011, 06:12 PM | #5 |
Enthusiast
Posts: 29
Karma: 10
Join Date: Aug 2010
Device: ipod touch
|
Aldiko
Hi,
Using !important didn't work. However, I started looking at some other EPUBs made by other people and noticed that the style property for indentation was working when a class was used as opposed to styling the paragraph tag directly. |
Advert | |
|
03-11-2011, 04:56 AM | #6 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Ah, the same happens with the <body> margins in the Cybook...
I wonder if using some other selector would work too, like "* + p" (a paragraph following any other element) or "body p" (any paragraph inside the <body>). In principle, those have higher priority than just "p", and would affect all paragraphs. |
11-19-2012, 08:15 AM | #7 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2012
Device: Android phone
|
Yes, it works. I'm currently using "body p" to overcome this in every style sheet.
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
An example file of your CSS style sheet | roger64 | Writer2ePub | 6 | 04-11-2012 02:59 AM |
xthml file not refer to style sheet | droople | Sigil | 11 | 08-22-2010 01:35 PM |
Mobi TOC style vs ePub style? | phearlez | Kindle Formats | 3 | 04-11-2010 06:35 AM |
ignoring pdfs | klikklak | Calibre | 2 | 09-03-2009 05:27 AM |