created march 2001

Stupid Growing CSS Tricks

When you nest an element and have the font-size: set in percentages, some interesting things can happen

Is this a case of diminishing returns, or expanding ones?

Source Code

<style type="text/css">
span { font-size: 120%; }
</style> 
<span>Is 
  <span>this 
    <span>a 
      <span>case 
        <span>of 
          <span>diminishing 
            <span>returns, 
              <span>or 
                <span>expanding
                  <span>ones?</span> 
                </span>
              </span>
            </span>
          </span>
        </span>
      </span>
    </span>
  </span>
</span>