Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> p.t1 { white-space: nowrap; } p.t2 { white-space: normal; } p.t3 { white-space: pre-wrap; } </style> </head> <body> <h2>White-space property example</h2> <h3>white-space: nowrap;</h3> <p class="t1"> Lorem Ipsum is dummy text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is simply dummy text. Lorem Ipsum is simply dummy text. </p> <h3>white-space: normal;</h3> <p class="t2"> Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is simply dummy text. Lorem Ipsum is simply dummy text. </p> <h3>white-space: pre-line;</h3> <p class="t3"> Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is dummied text. Lorem Ipsum is simply dummy text. Lorem Ipsum is simply dummy text. </p> </body> </html>