/**
 * Set Div element text align style.
 *
 * @param mixed $value Text align value.
 *
 * @return self Returns instance of the Div element class.
 *
 * @access public
 */
public function textAlign(string $value): self

Examples

Set Div element text align left using fluent interface

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div('Stay RAD!')->textAlign('left')
);

// or with magic method
render (
  div('Stay RAD!')->textAlignLeft()
);

Set Div element text align left using magic classes pipeline

use function Thermage\div;
use function Thermage\render;

// ...

render (
  div('Stay RAD!', 'text-align-left')
);
Terminal
$ php thermage.php
Stay RAD!

By default Div element text align style is left, but you can change it to right or center.