/**
 * Set Div element margin top, right, bottom, left style.
 *
 * @param int      $top    Margin top value.
 * @param int|null $right  Margin right value.
 * @param int|null $bottom Margin bottom value.
 * @param int|null $left   Margin left value.
 *
 * @return self Returns instance of the Div element class.
 *
 * @access public
 */
public function m(int $top, ?int $right = null, ?int $bottom = null, ?int $left = null): self

Examples

Set margin style using fluent interface

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

// ...

render(
  div('Stay RAD!')->m(10)->bg('red')
);

Set margin style using magic method fluent interface

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

// ...

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

Set margin style using magic classes pipeline

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

// ...

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