Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</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</h2> <h3>text-overflow: ellipsis</h3> <div>Lorem Ipsum</div> </body> </html>