
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Align the Last Line of the Text with CSS
The text-align-last property is used to align the last line of the text. You can try to run the following code to align the last line of the text with CSS
Example
<!DOCTYPE html> <html> <head> <style> .mydiv { text-align-last: right; } </style> </head> <body> <h1>text-align-last Property</h1> <div class = "mydiv"> <p>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.</p> </div> </body> </html>
Output
Advertisements