View Single Post
Old 01-17-2012, 09:54 AM   #1
ukzembla
Junior Member
ukzembla began at the beginning.
 
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
ukzembla is offline   Reply With Quote