Does HTML support a behavior of text rendering where multiple lines will be avoided with an automatic placement of “…” ? Sorry, I just cannot find the style/tag associated with this behavior, if it exists!
Does HTML support a behavior of text rendering where multiple lines will be avoided
Share
No, there is nothing built in.
You need to either do it yourself serverside, or write some JavaScript that will count lines and replace the rest of the line with an ellipsis (
...).There is a
text-overflow-modedefined in the CSS3 spec that will do this, but as a working draft it is not final and will not necessarily work on current browsers.