CSS coding: how to make a text ellipsis Trending Photo by cottonbro on Pexels.com NewsGeek Team July 4, 2022 Often you want to shorten the text to make it fit a box and just make it nicer to display, copy/paste the code below to make an ellipsis .your-class { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } Previous Article Spotify gets even more social with a podcast button Next Article Space: a multiplanet system nearby discovered by Astronomers from Massachusetts Institute of Technology Latest Posts 3 Key Skills to Be an Effective Leader Apple remains the largest company by Market Valuation visionOS 2 for Apple Vision Pro is available today