View Single Post
Old 06-18-2011, 03:28 AM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by DaleDe View Post
I have found that 1em is better than nothing, particularly when the font size changes within a paragraph using a span. Having a defined size is better than the default which can be a default inherit depending on the reader resulting in the size remaining changed after the span is done until the paragraph end.
Do you mean this:

Code:
<p>Some paragraph with <span class="large">large words</large> as a sample
would look different with this style:

Code:
p { font-size: 1em; }
span.large { font-size: 200%; }
and this:

Code:
p { }
span.large { font-size: 200%; }
(which would display "as a sample" in large font too)?

If that's the case, it must be a bug in whatever reader does that, or there's something I've still not grasped from the CSS spec.
Jellby is offline   Reply With Quote