From dcfb172704f3afb68a30425029ec834be2883274 Mon Sep 17 00:00:00 2001 From: bt Date: Sat, 8 Jun 2024 13:22:19 -0400 Subject: More content porting, on-going markdown changes for lowdown support --- build/te/index.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'build/te/index.html') diff --git a/build/te/index.html b/build/te/index.html index 36c2232..7fa2959 100644 --- a/build/te/index.html +++ b/build/te/index.html @@ -1,32 +1,40 @@ - + The Wonders of Text Ellipsis - - + + +
-

The Wonders of Text Ellipsis

+

The Wonders of Text Ellipsis

+

2016-11-15

-

A common issue when working with constrained UI elements is text overflowing outside of it's parent or breaking into addition lines (thus breaking the layout).

-

This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user's view:

+ +

A common issue when working with constrained UI elements is text overflowing outside of it’s parent or breaking into addition lines (thus breaking the layout).

+ +

This is most commonly seen with the direct and placeholder values for input fields on form elements. For example, the following input placeholder will be cutoff from the user’s view:

+

CodePen live example

+

Luckily, 3 simple CSS parameters can fix this.

+
input::placeholder {
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }
 
-

This allows the user to understand there is more content cut out from their current view. It's not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.

+ +

This allows the user to understand there is more content cut out from their current view. It’s not ideal to ever have content overflowing outside of the parent container, but if you need to the best workaround is to use text-overflow.