package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.style/Style/Text_align/index.html
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.