Hello Readers, Today I come with quick tip about to display text in proper format in IPhone or Android.
When you are working with mobile application using HTML5 and Phonegap. You get small design issue which takes your much time to solve.
Also Read: Ipad Orientation Detection
So, Here I am going to share the solution i have tried to solve the text display issue and it looks proper.
white-space: pre-wrap // wrap text and preserve space,tab and new line
white-space: pre-line // no-wrap text and preserve space,tab and new line
White Space property is used to preserve white space inside the text.
That’s it. I am done with the solution. I hope that you find this trick useful! If you have any query or question,tell us in the comment section :). Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.