- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
How to set the whitespace between text in CSS?
To set the whitespace between text, use the white-space property. Possible values are normal, pre, nowrap.
Example
You can try to run the following code to set the whitespace between text in CSS:
<html> <head> </head> <body> <p style = "white-space:pre;"> This text has a line break and the white-space pre setting tells the browser to honor it just like the HTML pre tag.</p> </body> </html>
- Related Articles
- How to set the cases for a text in CSS?
- How to set the color of a text with CSS
- Set the shadow around the text in CSS
- Set the distance between the marker and the text relating to that marker with CSS
- Set the text shadow around a text with CSS
- Set Text Alignment using CSS
- Set the color of the text decoration in CSS
- Set the style of the text decoration in CSS
- How to set the spacing between words in a text in JavaScript?
- How to set the space between characters in a text with JavaScript?
- How to set the distance between lines in a text with JavaScript?
- Set Text Alignment Working with CSS
- Set the direction of a text with CSS
- How to handle tabs, line breaks and whitespace in a text in JavaScript?
- Set the kind of decoration used on text in CSS

Advertisements