<!DOCTYPE html> <html> <div style="overflow: hidden; width: 130px; white-space: nowrap; text-overflow: ellipsis"> Some long text that cannot possibly fit in 130 px, because it just can't. </div> </html>