- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
CSS white-space Property
Use the white-space property to work with white-space inside an element:
Example
<!DOCTYPE html> <html> <head> <style> p.demo1 { white-space: normal; } p.demo2 { white-space: pre; } </style> </head> <body> <h2>Control white-space</h2> <p class = "demo1"> This is demo text. This is demo text. </p> <p class = "demo2"> This is demo text. This is demo text. </p> </body> </html>
Advertisements