From 1cd44868aa82e137d00ab9db9114c4eb4bf494ae Mon Sep 17 00:00:00 2001 From: Carys Mills Date: Sat, 16 Mar 2019 13:03:30 -0400 Subject: [PATCH] Add text overflow to text docs (#30454) --- guide/english/css/text/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guide/english/css/text/index.md b/guide/english/css/text/index.md index 79b6da21f2..ca4bfddfed 100644 --- a/guide/english/css/text/index.md +++ b/guide/english/css/text/index.md @@ -92,6 +92,17 @@ p { } ``` + +#### Text overflow + +``` css +p { + text-overflow: ellipsis; +} +``` + +The `text-overflow` property is used to specify how hidden overflowed content is ended, to communicate to users that the content has been cut off. For the property to work, it must be used with two other CSS properties: overflow and white-space. For example, `overflow: hidden` and `white-space: nowrap`. + #### More Information: - [W3Schools CSS text](https://w3schools.com/css/css_text.asp)