A quick snippet for you to limit the number of characters in a span / div etc by a particular value. This function also includes a slightly neater … at the cutoff point:-
Make sure you enter the character value in twice (currently 80).
Limit Number of Characters with CSS
Actually this can also be done very neatly with the ‘ellipsis’ CSS function, but note that this is relatively new and only works on single lines:-[css]
Its the ‘text-overflow: ellipsis;’ that does all the work, but you do need the other lines for it to work effectively. Then you’ll get the same effect like ‘text stops here …’