Tailwindcss: [Feature Proposal] text-align-last

Created on 5 Mar 2019  路  2Comments  路  Source: tailwindlabs/tailwindcss

Hello, very quick proposal here:

.text-justify-right -> text-align: justify; text-align-last: right;
.text-justify-center -> text-align: justify; text-align-last: center;
.text-justify-left ~ .text-justify

Use case here:
screen shot 2019-03-05 at 10 40 47 am copy

Most helpful comment

Hey @NicolasGiuristante thanks for the suggestion! I think I would implement it as just separate utilities (text-last-right, text-last-center, and text-last-left) which you would use in combination with text-justify.

I don't think I want to add this by default right this moment, but if there's enough demand for it to be in core I am not opposed to it 馃憤馃徎

For now I would recommend adding it to your own projects using a little plugin, or using CSS as outlined in the docs:

https://tailwindcss.com/docs/adding-new-utilities

All 2 comments

Plugin territory due to browser support and still being part of a Working Draft (CSS Text Module Level 3).

EDIT: Didn't know about the property, so thank you haha

Hey @NicolasGiuristante thanks for the suggestion! I think I would implement it as just separate utilities (text-last-right, text-last-center, and text-last-left) which you would use in combination with text-justify.

I don't think I want to add this by default right this moment, but if there's enough demand for it to be in core I am not opposed to it 馃憤馃徎

For now I would recommend adding it to your own projects using a little plugin, or using CSS as outlined in the docs:

https://tailwindcss.com/docs/adding-new-utilities

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nternetinspired picture nternetinspired  路  3Comments

AlexVipond picture AlexVipond  路  3Comments

chasegiunta picture chasegiunta  路  3Comments

chintanbanugaria picture chintanbanugaria  路  3Comments

benface picture benface  路  3Comments