/**
* Set Hr element border style.
*
* @param string $value Hr border style value.
*
* @return self Returns instance of the Hr element class.
*
* @access public
*/
public function border(string $value): self
Examples
Set border style using fluent interface
use function Thermage\div;
use function Thermage\render;
// ...
render(
hr()->border('thin')
);
Set border style using magic method fluent interface
use function Thermage\hr;
use function Thermage\render;
// ...
render(
hr('Stay RAD!')->borderThin()
);
Set border style using magic classes pipeline
use function Thermage\hr;
use function Thermage\render;
// ...
render(
hr('', 'border-thin')
);
Terminal
$ php thermage.php
By default Hr element border is thin
, but you can change it to double
, triple
, heavy
, super-heavy
, dashed
, arrow-down
, arrow-up
, wave
, rope
, rope-heavy
, brick
, block-small
, block-small-heavy
, block
, noise
.
Getting Started
Methods
- border Set Hr element border style.
- color Set Hr element text color style.
- d Set Hr element display style.
- getShortcodes Get Hr element shortcodes instance.
- getTheme Get Hr element theme.
- getValue Get Hr element value.
- render Render Hr element.
- setShortcodes Set Hr element shortcodes instance.
- setTheme Set Hr element theme instance.
- textAlign Set Hr element text align.
- value Set Hr element value.