On 21 July 2010 11:52, tee <[email protected]> wrote:

> EM can fail miserably in below senario for IEs for p, li and span tags due
> to inheritance making them very tiny and unable to get consistence font size
> for one block of content in different browsers not just the IE.
>
> body {font-size: 100.1%}
> p, li {font-size: 0.95em}
> span  {font-size: 0.9em}
>
> [snipped]

As a general rule, you shouldn't be putting any font-size in tags, as that
will frequently suffer inheritance problems.  This general-rule applies to
most attributes on most tags.  The one example where this may not apply, is
when defining a reset.

Instead, you should be targeting your styles, using #id, .class or
derived-selectors -> this helps to avoid most inheritance problems and saves
your sanity.

regards,
Mathew Robertson


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to