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