Prev Demo
CSS3
>
White-Space Property
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <style> .class1{ white-space:normal; } .class2 { white-space:pre; } </style> <h3>White-space property with value 'normal'</h3> <p class="class1"> SN ITFunda Service LLP, SVH Plaza, Opposite to KFC, Miyapur, Hyderabad-500049. </p> <h3>White-space property with value 'pre'</h3> <p class="class2"> SN ITFunda Service LLP, SVH Plaza, Opposite to KFC, Miyapur, Hyderabad-500049. </p> <br/> <br/> <strong>Note:</strong> Notice how the text inside the 'P' element changed based upon the property value. </body> </html>
Note: We DO NOT save your trial code in our database.
Output