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

Examples

Set Paragraph element text align left using fluent interface

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

// ...

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

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

Set Div text align left using magic classes pipeline

use function Thermage\paragraph;
use function Thermage\render;

// ...

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

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

Getting Started

Methods