Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> div { white-space: nowrap; background-color: #eee; width: 50px; overflow: hidden; text-overflow: ellipsis; border: 1px solid #666; } </style> </head> <body> <h2>Text-overflow property example</h2> <h3>text-overflow: ellipsis</h3> <div>Lorem Ipsum</div> </body> </html>