title: Decreasing font size in rails
body: <p>Im trying to achieve the following effect in rails:</p>
  
  <p>If the text is bigger than x characters then make it smaller, the next x characters smaller, the next character smaller, ad infinitum</p>
  
  <p>for example x = 7 would output the following html</p>
  
  <pre><code>Lorem i&lt;small&gt;psum do&lt;small&gt;lor sit&lt;small&gt; amet, &lt;small&gt;consecte
  &lt;small&gt;tur adip&lt;small&gt;isicing&lt;/small&gt;&lt;/small&gt;&lt;/small&gt;&lt;/small&gt;&lt;/small&gt;&lt;/small&gt;
  </code></pre>
  
  <p>and the css would be <code>small {font-size: 95%}</code></p>
  
  <p>What is an elegant way to achieve this?</p>