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

Examples

Set padding y style using fluent interface

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

// ...

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

Set padding y style using magic method fluent interface

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

// ...

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

Set padding y style using magic classes pipeline

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

// ...

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