you can always create your own method and call it at the end of the
load.

just do it by calculation:

function reduceFontSize() [
$("all my tags that I want to check").each( function(e) {

var len = $(this).text().length;
if( len > 30 ) $(this).attr("style", "font-size:12px");
if( len  >= 30 && len < 40 ) $(this).attr("style", "font-size:11px");
if( len  >= 40 && len < 50 ) $(this).attr("style", "font-size:10px");

});
}

then apply it.


   reduceFontSize();


Bruno Alexandre
[web] www.balexandre.com
[twitter] http://twitter.com/balexandre

my Widgets for iPhone Web Development
[iCal widget for jQTouch] http://code.google.com/p/jqtouch-ical/



-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to