Le 5 sept. 2012 à 23:53, marie-ange.demeulemees...@bnpparibasfortis.com a écrit :
> > Hi, > According this specs > http://developer.android.com/design/style/typography.html I've defined my > font-size in sp (scale-independent pixels): > body{font-family:Roboto,Helvetica,Arial,sans-serif; > font-size:14sp; > } > p.size20 {font-size:20sp; font-size:larger} > > Or in dp (Density-independent Pixels): > body{font-family:Roboto,Helvetica,Arial,sans-serif; > font-size:14dp; > } > p.size20 {font-size:20dp; } > > None of them works on my Smartphone Samsung Galaxy S I9000. > The best result is small - medium - large, but I not recommended. > Has anyone experience with this font-size unit? As far as I understand from that Android page, those units are intended for usage in the UI by application developers, not for usage in HTML based content. None of those units exist in any CSS spec (recommendation or in-development) to date. Philippe -- Philippe Wittenbergh http://l-c-n.com ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/