/**
 * Set Paragraph element margin x style.
 *
 * @param int $value Margin x value.
 *
 * @return self Returns instance of the Paragraph element class.
 *
 * @access public
 */
public function mx(int $value): self

Examples

Set margin both style using fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->mx(10)->bg('red')
);

Set margin both style using magic method fluent interface

use function Thermage\paragraph;
use function Thermage\render;

// ...

render( 
  paragraph('Stay RAD!')->mx10()->bgRed()
);

Set margin both style using magic classes pipeline

use function Thermage\paragraph;
use function Thermage\render;

// ...

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

Getting Started

Methods