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

Examples

Set Span element display using fluent interface

use function Thermage\span;
use function Thermage\render;

// ...

render( 
  span('Stay RAD!')->d('block')
);

Set Span element display using magic method fluent interface

use function Thermage\span;
use function Thermage\render;

// ...

render( 
  span('Stay RAD!')->dBlock()
);

Set Span element width using magic classes pipeline

use function Thermage\span;
use function Thermage\render;

// ...

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

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