I have a webpage with an elastic layout that changes its width if the browser window is resized.
In this layout there are headlines (h2) that will have
DO THE ELLIPSIS USING ONLY CSS
This content is more than 200px and see how the the ellipsis comes at the end when the content width exceeds the div width.
*This code works on most current browsers. If you experience any problem with Opera and IE (which probably you won't), add these in the style:
-o-text-overflow: ellipsis;
-ms-text-overflow: ellipsis;
* This feature is part of CSS3. Its complete syntax is:
text-overflow: clip|ellipsis|string;