monks/text_align
The text-align CSS property sets the horizontal alignment of the inline-level content inside a block element or table-cell box. This means it works like {{cssxref(“vertical-align”)}} but in the horizontal direction.
Values
pub const center: #(String, String)
- : The inline contents are centered within the line box.
pub const end: #(String, String)
- : The same as
rightif direction is left-to-right andleftif direction is right-to-left.
pub const justify: #(String, String)
- : The inline contents are justified. Spaces out the content to line up its left and right edges to the left and right edges of the line box, except for the last line.
pub const left: #(String, String)
- : The inline contents are aligned to the left edge of the line box.
pub const match_parent: #(String, String)
- : Similar to
inherit, but the valuesstartandendare calculated according to the parent’s {{cssxref(“direction”)}} and are replaced by the appropriateleftorrightvalue.
pub const revert_layer: #(String, String)
pub const right: #(String, String)
- : The inline contents are aligned to the right edge of the line box.
pub const start: #(String, String)
- : The same as
leftif direction is left-to-right andrightif direction is right-to-left.