/**
* Set Hr element display style.
*
* @param string $value Hr display value.
*
* @return self Returns instance of the Hr element class.
*
* @access public
*/
public function d(string $value): self
Examples
Set hr element display using fluent interface
use function Thermage\hr;
use function Thermage\render;
// ...
render(
div('Stay RAD!')->d('block')
);
Set hr element display using magic method fluent interface
use function Thermage\hr;
use function Thermage\render;
// ...
render(
hr()->dBlock()
);
Set Hr element width using magic classes pipeline
use function Thermage\hr;
use function Thermage\render;
// ...
render(
hr('', 'd-block')
);
Terminal
$ php thermage.php
By default Hr element display state is block
, but you can change it to none
.
Getting Started
Methods
- border Set Hr element border style.
- color Set Hr element text color style.
- d Set Hr element display style.
- getShortcodes Get Hr element shortcodes instance.
- getTheme Get Hr element theme.
- getValue Get Hr element value.
- render Render Hr element.
- setShortcodes Set Hr element shortcodes instance.
- setTheme Set Hr element theme instance.
- textAlign Set Hr element text align.
- value Set Hr element value.