/**
 * Set Div element display style.
 *
 * @param string $value Div display value.
 *
 * @return self Returns instance of the Div element class.
 *
 * @access public
 */
public function d(string $value): self

Examples

Set Div element display using fluent interface

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

// ...

render(
  div('Stay RAD!')->d('block')->bg('red')
);

Set Div element display using magic method fluent interface

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

// ...

render(
  div('Stay RAD!')->dBlock()->bgRed()
);

Set Div element width using magic classes pipeline

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

// ...

render(
  div('Stay RAD!', 'd-block bg-red')
);
Terminal
$ php thermage.php
Stay RAD!

By default Div element display state is block, but you can change it to inline or none.