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

Examples

Set padding x style using fluent interface

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

// ...

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

Set padding x style using magic method fluent interface

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

// ...

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

Set padding x style using magic classes pipeline

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

// ...

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

Getting Started

Methods