/**
* Set Heading 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 Heading text align center using fluent interface
use function Thermage\heading;
use function Thermage\render;
// ...
render (
heading('Stay RAD!')->textAlign('center')
);
// or with magic method
render (
heading('Stay RAD!')->textAlignCenter()
);
Set Heading text align center using magic classes pipeline
use function Thermage\heading;
use function Thermage\render;
// ...
render (
heading('Stay RAD!', 'text-align-center')
);
Terminal
$ php thermage.php
Stay RAD!
By default Heading element text align style is left
, but you can change it to right
.
Getting Started
Methods
- d Set Heading element display style.
- getShortcodes Get Heading element shortcodes instance.
- getTheme Get Heading element theme.
- getValue Get Heading element value.
- render Render Heading element.
- setShortcodes Set Heading element shortcodes instance.
- setTheme Set Heading element theme instance.
- size Set Heading size.
- textAlign Set Heading element text align.
- value Set Heading element value.