Check out example codes for "html css make p div into two lines". It will help you in understanding the concepts better.

Code Example 1

line-height:20px;
height:40px;

overflow:hidden;
white-space: pre;

Learn ReactJs, React Native from akashmittal.com