

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
text-justify Property in CSS
The text-justify property in CSS is used to set the justification method of text when the text-align property is set to the justify value. Following are the property values −
text-justify: auto|inter-word|inter-character|none|initial|inherit;
Example
Let us now see an example to implement the text-justify property in CSS −
<!DOCTYPE html> <html> <head> <style> div { text-align: justify; text-justify: inter-word; color: white; background-color: gray; } </style> </head> <body> <h2>Demo Heading</h2> <div>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </body> </html>
Output
Now, resize the browser −
- Related Questions & Answers
- How to Justify Text using text-align & text-justify CSS Properties?
- Role of CSS justify-content property center value
- CSS justify-content
- Role of CSS justify-content property flex-start value
- Role of CSS justify-content property flex-end value
- Role of CSS justify-content property space-around value
- Role of CSS justify-content property space-between value
- CSS text-emphasis property
- CSS text-overflow property
- Indent Text with CSS text-indent Property
- CSS text-align-last property
- Animate CSS text-shadow property
- Animate CSS text-indent property
- How to justify text in label in tkinter in Python Need justify in tkinter?
- Animate CSS text-decoration-color property
Advertisements