http://codepen.io/anon/pen/oXGMQZ
Is there a way to automatically adjust the font size of each span within a parent div so that it fills the width of the parent div?
<div class="box">
<span class="fit">what</span>
<span class="fit">an</span>
<span class="fit">idea!</span>
</div>
.box{
width: 50%;
background: beige;
text-align: center;
}
.fit{
display: block;
}
This would result in each line of text having a different font-size based on its length.