Home » “text-overflow” property to truncate long texts – CSS3

“text-overflow” property to truncate long texts – CSS3

				
					.short_text {
  width: 252px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
				
			
Example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam blandit in dolor non dapibus. Suspendisse potenti. In libero sem, consequat non tellus nec, viverra commodo lorem. Fusce ac quam mattis, consectetur diam ut, facilisis diam.
About Author
Picture of W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!