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

Examples

Set padding top style using fluent interface

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

// ...

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

Set padding top style using magic method fluent interface

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

// ...

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

Set padding top style using magic classes pipeline

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

// ...

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

Getting Started

Methods