Text overflow [til/css]

I know about CSS’s text-overflow: ellipsis but it nearly never works first time for me. I totally missed that the property needs two other properties in play against the element:
overflow: hidden;
white-space: nowrap;

It’s that second one, the white-space I always forget!


This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log

I know about CSS's text-overflow: ellipsis but it nearly never works first time for me. I totally missed that the property needs two other properties in play against the element:

overflow: hidden;
white-space: nowrap;

It's that second one, the white-space I always forget!

Originally published on Remy Sharp's b:log


This content originally appeared on remy sharp's b:log and was authored by remy sharp's b:log


Print Share Comment Cite Upload Translate Updates
APA

remy sharp's b:log | Sciencx (2020-11-06T19:13:58+00:00) Text overflow [til/css]. Retrieved from https://www.scien.cx/2020/11/06/text-overflow-til-css/

MLA
" » Text overflow [til/css]." remy sharp's b:log | Sciencx - Friday November 6, 2020, https://www.scien.cx/2020/11/06/text-overflow-til-css/
HARVARD
remy sharp's b:log | Sciencx Friday November 6, 2020 » Text overflow [til/css]., viewed ,<https://www.scien.cx/2020/11/06/text-overflow-til-css/>
VANCOUVER
remy sharp's b:log | Sciencx - » Text overflow [til/css]. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2020/11/06/text-overflow-til-css/
CHICAGO
" » Text overflow [til/css]." remy sharp's b:log | Sciencx - Accessed . https://www.scien.cx/2020/11/06/text-overflow-til-css/
IEEE
" » Text overflow [til/css]." remy sharp's b:log | Sciencx [Online]. Available: https://www.scien.cx/2020/11/06/text-overflow-til-css/. [Accessed: ]
rf:citation
» Text overflow [til/css] | remy sharp's b:log | Sciencx | https://www.scien.cx/2020/11/06/text-overflow-til-css/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.