Check out example codes for "css ellipsis". It will help you in understanding the concepts better.

Code Example 1

div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Code Example 2

//Truncate text overflow 
.element {
	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}

Code Example 3

.element{

  text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

Code Example 4

white-space:normal !important;
word-wrap:break-word;

Code Example 5

overflow: scroll;
white-space: nowrap;

Code Example 6

.truncate {
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Learn ReactJs, React Native from akashmittal.com