Actually, Bootstrap doesn't "handle" any particular font sizing method. It starts with a global font size of 100% and then changes to what default they figured out should be for any specific elements that need to be changed. It's up to you to change the font-size using whatever method you see fit by modifying the appropriate classes.
If you want to know the difference between font-size scaling method, here's an old but still relevent blog post explaining the differences between EM, %, PX and PT, http://kyleschaeffer.com/user-experience/css-font-size-em-vs-px-vs-pt-vs/ And now, with newer browsers, you have the REM method also. The difference between EM and REM is that EM uses the parent element font-size as its base and REM uses the ROOT (BODY or HTML) font-size as its base. Lets say you have: body{ font-size: 16px;} div{ font-size: 2em;} div p{ font-size: 2em} The DIV will have a font-size of 32px and the P inside that DIV will be 64px. Now, change, div p{ font-size: 2rem;}, and you'll get your P element at 32px. Hope this helps you a bit. On Thursday, August 29, 2013 2:33:36 AM UTC-4, Marcelo de Moraes Serpa wrote: > > I've been reading a lot about web typography lately, and almost every > article says "em" is a better unit than "px" for font-size, because it > better supports text resizing in existing browsers. > > There's almost no info on how bootstrap handles it (if at all). From what > I see, bootstrap just discards em and uses px as de defacto unit. > > * Is it possible to use em units for font-size with Bootstrap without > major hacking? > * If Bootstrap doesn't support em out of the box - what is the rationale > behind this decision? > * What are the alternative CSS frameworks that do support em > out-of-the-box? > > Thanks in advance > > -- > Marcelo > > > -- You received this message because you are subscribed to the Google Groups "twitter-bootstrap" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
