0

Can we write paragraph similar to the way we see in books?

in books we can see that starting line begins in the center and next consequent lines start from left side of the page.can we do that in html?

15th Nov 2016, 6:23 AM
nithin
nithin - avatar
2 Answers
+ 1
you can use text-indent property: Please check the below example <!DOCTYPE html> <html> <head> <style> p { text-indent: 50px; } </style> </head> <body> <p>Lorem Ipsum is unadulterated drivel. It means nothing whatsoever, but it's surprisingly useful. The main idea behind lorem ipsum is to have 'convincing' text, separated into words, paragraphs and with punctuation etc. This 'text' is then used by DTP bureaux and web designers for roughing out document designs, illustrating text flow and run arounds before the final text arrives. It allows designers to show their proposals without having clients distracted by meaningful text. It also avoids fine publications like N.T.K. detecting irony which may become apparent in old web page drafts loitering around dusty servers which had English-language garbage text used as filler. A FOLDOC definition of lorem ipsum is here. </p> </body> </html>
15th Nov 2016, 8:16 AM
Osama Sasi
Osama Sasi - avatar
0
thanks osama
15th Nov 2016, 8:26 AM
nithin
nithin - avatar