Is there some sort of way within HTML or CSS to limit the characters displayed with a span? I use a repeater that displays these info boxes and I want to limit the character
use js:
$(document).ready(function () { $(".class-span").each(function(i){ var len=$(this).text().trim().length; if(len>100) { $(this).text($(this).text().substr(0,100)+'...'); } }); });