![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Kindle
|
Inline Styles and Overrides
Hi,
I have a paragraph which is styled as italic in the CSS. But for some reason (on the Kindle at any rate) it won't override the parent setting in a span - so if I set a paragraph as italic, it won't let me use any roman characters in the paragraph. This seems pretty stupid to me, or am I doing something wrong? <p class="ital">This is <span class="roman">roman text</span></p> It's even the same if everything is manually styled inline:<p style="font-style:italic">This is <span style="font-style:normal">roman text</span></p> Thanks,Alex |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,251
Karma: 3720310
Join Date: Jan 2009
Location: USA
Device: Kindle, iPad (not used much for reading)
|
It is going to depend on how smart the software that converts your HTML is. .mobi format does not support css directly, so the HTML and CSS have to be translated to very basic HTML for it to show up on the Kindle.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jun 2011
Device: Kindle
|
Wouldn't you say the second example above, with inline styles for italics and normal text, counts as pretty basic? Should it work, at least in theory, on the Kindle? I'm using Kindlegen and my own custom pre-processing from ePub.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ID: Converting all images to inline | virtual_ink | ePub | 9 | 07-12-2011 09:12 PM |
inline text to footnote | Ciprian | Workshop | 0 | 06-27-2011 04:13 AM |
Removing Font and Margin Overrides | anamardoll | ePub | 13 | 06-09-2011 07:32 PM |
Trying to make an Inline TOC | crutledge | Sigil | 2 | 05-09-2010 05:46 AM |
HTML2LRF and inline pictures | pepak | Calibre | 12 | 02-04-2009 12:12 PM |