/**
* Set Anchor element padding both style.
*
* @param int $value Anchor padding both.
*
* @return self Returns instance of the Anchor element class.
*
* @access public
*/
public function px(int $value): self
Examples
Set padding both style using fluent interface
use function Thermage\anchor;
use function Thermage\render;
// ...
render(
anchor('Thermage')->href('https://awilum.github.io/thermage/')->px(10)
);
Set padding both style using magic method fluent interface
use function Thermage\anchor;
use function Thermage\render;
// ...
render(
anchor('Thermage')->href('https://awilum.github.io/thermage/')->px10()
);
Set padding both style using magic classes pipeline
use function Thermage\anchor;
use function Thermage\render;
// ...
render(
anchor('Thermage', 'px-10')->href('https://awilum.github.io/thermage/')
);
Terminal
$ php thermage.php
Getting Started
Methods
- bg Set Anchor element background color style.
- blink Set Anchor element blink style.
- bold Set Anchor element bold style.
- border Set Anchor element border style.
- borderColor Set Anchor element border color style.
- color Set Anchor element text color style.
- d Set Anchor element display style.
- dim Set Anchor element dim style.
- display Set Anchor element display style.
- getShortcodes Get Anchor element shortcodes instance.
- getTheme Get Anchor element theme.
- getValue Get Anchor element value.
- href Set Anchor element href.
- italic Set Anchor element italic style.
- ml Set Anchor margin left style.
- mr Set Anchor margin right style.
- mx Set Anchor margin both style.
- pl Set Anchor padding left style.
- pr Set Anchor padding right style.
- px Set Anchor padding both style.
- render Render Anchor element.
- setShortcodes Set Anchor element shortcodes instance.
- setTheme Set Anchor element theme instance.
- strikethrough Set Anchor element strikethrough style.
- underline Set Anchor element underline style.
- value Set Anchor element value.