/**
 * Set Span element padding both style.
 *
 * @param int $value Span padding both.
 *
 * @return self Returns instance of the Span element class.
 *
 * @access public
 */
public function px(int $value): self

Examples

Set padding both style using fluent interface

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

// ...

render( 
  span('Stay RAD!')->px(10)
);

Set padding both style using magic method fluent interface

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

// ...

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

Set padding both style using magic classes pipeline

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

// ...

render( 
  span('Stay RAD!', 'px-10')
);

Set padding both style using shortcodes

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

// ...

render( 
  span('[px=10]Stay RAD![/px]')
);
Terminal
$ php thermage.php
Stay RAD!