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.
I was working with mobile application and get that text format is not proper for static content pages and for static pages contents/text are more important and has to look proper.
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.
1 2 3 4 | 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.