Font size in CSS - % or em? -


when setting size of fonts in css, should using percent value (%) or em? can explain advantage?

there's article on web typography on a list apart.

their conclusion:

sizing text , line-height in ems, percentage specified on body (and optional caveat safari 2), shown provide accurate, resizable text across browsers in common use today. technique can put in kit bag , use best practice sizing text in css satisfies both designers , readers.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -