[dojo-contributors] Text sizing using em

Nathan Toone toonetown at dojotoolkit.org
Wed May 7 11:07:51 EDT 2008

Maybe put the "reset" value in the rule for dijitReset?  (I think  
that's what dijitReset is meant to do anyway...)


On May 7, 2008, at 8:51 AM, sam foster wrote:

> We had a similar discussion on #dojo
> I can see the sense in having a sanity-check kind of baseline so
> whatever context the widgets are being show in, they look reasonable.
> OTOH, I also feel that widgets need to fully participate in whatever
> CSS cascade has been setup for that page - particularly wrt font-size.
> If an author wants big text on the page, widget text (labels and
> contents) should scale accordingly
> The problem we're trying to address is font-size compounding. If
> elements with proportional font-size (e.g. 0.9em) get nested, the text
> gets smaller and smaller. 0.9 * 0.9 != 0.9
> The best practice I believe is to move font-size properties to leaf
> nodes wherever possible. At times though nesting is unavoidable, and
> we need a way to pin or reset the font-size to avoid this compounding.
> font-size: 100% might do it, it would need testing
> E.g.
> .labelText {
>  font-size: 0.9em;
> }
> .labelText .labelText {
>  font-size: 100%;
> }
> <div class="labelText">Some label<div class="somethingElse"><span
> class="labelText">nested label</span></div>
> Sam
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
> http://turtle.dojotoolkit.org/mailman/listinfo/dojo-contributors

More information about the dojo-contributors mailing list