text resize
by salt
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css">
<div class="selector">Some text in here,<br/>
it will auto resize <br/>
based on resizing<br/>sdfsdfsdf</div>
CSS
.selector{
width: 150px;
}
JavaScript
$(".selector").resizable({
resize: function(event, ui) {
newSize = $(this).width() * 0.1;
$(this).css('font-size', newSize);
}
});