HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <style> p:nth-child(3){ text-align-last: auto; } p:nth-child(5){ text-align-last: left; } p:nth-child(7){ text-align-last: center; } p:nth-child(9){ text-align-last: justify; } p:nth-child(11){ text-align-last: right; } p:nth-child(13){ text-align-last: start; } p:nth-child(15){ text-align-last: end; } </style> </head> <body> <h1>CSS text-align-last Property</h1> <h2>text-align-last: auto;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: left;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: center;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: justify;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: right;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: start;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> <h2>text-align-last: end;</h2> <p>Joanne Rowling was born on 31st July 1965 at Yate General Hospital just outside Bristol, and grew up in Gloucestershire in England and in Chepstow, Gwent, in south-east Wales.</p> </body> </html>
OUTPUT
×

Save as Private