package toffee
Module Style.Text_alignSource
CSS text-align property for block layout.
Implements legacy HTML alignment behavior for block-level elements, corresponding to vendor-prefixed text-align values in browsers.
Text alignment affects the horizontal positioning of in-flow block children within their container. It does not affect absolutely positioned elements or non-block layouts.
type t = | Auto(*No special text alignment behavior. Block children remain left-aligned.
*)| Legacy_left(*Corresponds to
*)-webkit-leftor-moz-leftin browsers. Equivalent to left alignment.| Legacy_right(*Corresponds to
*)-webkit-rightor-moz-rightin browsers. Right-aligns block children.| Legacy_center(*Corresponds to
*)-webkit-centeror-moz-centerin browsers. Centers block children horizontally.
to_string align is the CSS string representation of align: "auto", "legacy-left", "legacy-right", or "legacy-center".
compare a b is a total order on alignment values, compatible with equal.
pp ppf align formats align on ppf using to_string.