Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6186235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:51:04+00:00 2026-05-24T01:51:04+00:00

Trying the Eric Meyer Reset I stumbled across an issue concerning the font-size:100% declaration

  • 0

Trying the “Eric Meyer Reset” I stumbled across an issue concerning the font-size:100% declaration to reset the font size of all suitable elements. font-size:100% means the elements should inherit font-size property of their parent, but this is not the case with the <sub> and <sup> elements and their descendants in IE (tested in 6,7,8 and 9th version).

For example (or this live example on a playground):

// CSS:
sup,span {font-size:100%;}
// HTML:
if you try this in IE, <sup>this text will be smaller <span>and this even more</span></sup>

It seems like just another implementation trick, that IE plays on webdesigners, since this is not the only glitch of these elements. My guess is that IE applies some own hard-wired styling on the <sub> and <sup> elements which makes their content smaller in addition to being sub-/superscripted, but I can’t find a way to reset this behaviour, if any exists at all.

// Please respond directly to this issue, suggestions like “use an UA specific stylesheet” may satisfy your feeling of being helpful, but doesn’t satisfy the topic πŸ™‚ ..EDIT: Ok, this plea has finally turned against me, but I wanted to state at least one answer to this topic here.

EDIT: It looks like IE (all versions till IE9) multiplies the font size of the <sub> and <sup> and their descendants with some variable coefficient (sth between 0.6 – 0.8 depending on the font-size).

The reasoning is following: when a fixed size (e.g. font-size:15px) is set on the <sup> tag and all its descendants, they all have the font size around 10px (β‰… 0.7 Γ— 15px). But, when a relative size is being set instead (e.g. font-size:100%), the coefficient effect is propagated from the <sup> element down to its descendants – so 1st-level descendant has the font size around 70% (β‰… 0.7 Γ— 100% of its <sup> parent), 2nd-level descendant has the font size around 50% (β‰… 0.7 Γ— 0.7 Γ— 100% of its <sup> ancestor) and so on. This propagation breaks when font-size:inherit is used, since it means the element should have exactly the same size as its parent – this works for the descendants of the <sup> element, but the <sup> element itself is still given a smaller font size by IE than its parent element does have.

The coefficient theory πŸ™‚ taking part in IE can be seen on this example. Also compare this with any of the “standard compliant” browsers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T01:51:05+00:00Added an answer on May 24, 2026 at 1:51 am

    It seems like the only “solution” to leave the font-size:100% reset-declaration in the stylesheet and still have acceptable sub-/superscripts is so far either to:

    • Use a different element for styling the sub-/superscripts, e.g. <span>. Definitely not a good idea in the light of semantics β†’ eliminated.
    • Use an UserAgent-specific stylesheet, conditional comments at best (which is what I was worried about, because i didn’t have to use them for IE β‰₯ 7, until now) and explictly restyle each descendant to compensate the “coefficient effect” β†’ it’s not worth it πŸ™‚.
    • Leave it as it is so everybody can see IE has its own rules (ideally/naively this could force them to fix it in the next version) and use font-size:inherit to have at least the descendants of <sub> or <sup> be the same size by default in IE β‰₯ 8 β†’ accepted.

    solution #2, this will do the trick (sure it can be tuned up, but just the concept):

    <!--[if IE]>
    <style>
      sup *,sub * {font-size:120%; font-size:inherit;}
    </style>
    <![endif]-->
    

    provided you don’t strive for maximum performance (See the * selector performance issue).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All, I am trying to simplify a RelaxNG schema using Eric van der Vlist's
Trying to make a make generic select control that I can dynamically add elements
Trying to keep all the presentation stuff in the xhtml on this project and
I am trying to list all the controllers and their actions with specific attributes
I'm trying to emulate this effect: http://meyerweb.com/eric/css/edge/complexspiral/demo.html on my blog: http://segment6.blogspot.com/ It works, but
I'm trying to create a teaser node template to display all Blog teasers. For
I am trying to load a html page through UIWebview.I need to disable all
When trying to execute this query my mysql server cpu usage goes to 100%
I'm trying to write Eric Kidd's and Sigfpe's code for a probability monad using
trying to use putExtra and getExtra with Bundle to share variables across activities: this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.