/**
 * Set Div element width
 *
 * @param int $value Div width.
 *
 * @return self Returns instance of the Div element class.
 *
 * @access public
 */
public function w(int $value): self

Examples

Set Div element width using fluent interface

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

// ...

render(
  div('Stay RAD!')->w(70)->bgRed()
)

Set Div element width using magic method fluent interface

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

// ...

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

Set Div element width using magic classes pipeline

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

// ...

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