Add text-align CSS type.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-05 18:33:51 +00:00
parent fa0a4ba3d4
commit d27e13a49a
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
A [`<text-align>`](/css_types/text_align) can be any of the following values:
| Value | Alignment type |
|-----------|--------------------------------------|
| `center` | Center alignment. |
| `end` | Alias for `right`. |
| `justify` | Text is justified inside the widget. |
| `left` | Left alignment. |
| `right` | Right alignment. |
| `start` | Alias for `left`. |
!!! tip
The meanings of `start` and `end` will likely change when RTL languages become supported by Textual.