CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise


CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS text overflow Property

CSS text-overflow Property



The text-overflow property is used to specify how overflowed content that is not displayed should be signaled to the user. It can be clipped or display an ellipsis (...) or display a custom string. Some properties which must be present when using text-overflow are:-

  1. overflow: hidden;
  2. white-space: nowrap;


Default Value:-


Its default value is clip.




Its syntax is:- text-overflow: clip | ellipsis | string | initial | inherit;


Further Explanation:-


Value Description
clip The text is clipped and not accessible.
ellipsis Render an ellipsis (...) to represent the clipped text.
string Render the given string to represent the clipped text.
initial Sets this property to its default value.
inherit Inherits this property from its parent element.

Code Explanation

All Tutorials related to CSS Properties

All Sections related to CSS