/**
* Set Paragraph element margin x style.
*
* @param int $value Margin x value.
*
* @return self Returns instance of the Paragraph element class.
*
* @access public
*/
public function mx(int $value): self
Examples
Set margin both style using fluent interface
use function Thermage\paragraph;
use function Thermage\render;
// ...
render(
paragraph('Stay RAD!')->mx(10)->bg('red')
);
Set margin both style using magic method fluent interface
use function Thermage\paragraph;
use function Thermage\render;
// ...
render(
paragraph('Stay RAD!')->mx10()->bgRed()
);
Set margin both style using magic classes pipeline
use function Thermage\paragraph;
use function Thermage\render;
// ...
render(
paragraph('Stay RAD!', 'mx-10 bg-red')
);
Terminal
$ php thermage.php
Stay RAD!
Getting Started
Methods
- bg Set Paragraph element background color style.
- blink Set Paragraph element blink style.
- bold Set Paragraph element bold style.
- border Set Paragraph element border style.
- borderColor Set Paragraph element border color style.
- color Set Paragraph element text color style.
- d Set Paragraph element display style.
- dim Set Paragraph element dim style.
- display Set Paragraph element display style.
- getShortcodes Get Paragraph element shortcodes instance.
- getTheme Get Paragraph element theme.
- getValue Get Paragraph element value.
- h Set Paragraph element height.
- invisible Set Paragraph element invisible style.
- italic Set Paragraph element italic style.
- m Set Paragraph margin style.
- mb Set Paragraph margin bottom style.
- ml Set Paragraph margin left style.
- mr Set Paragraph margin right style.
- mt Set Paragraph margin top style.
- mx Set Paragraph margin x style.
- my Set Paragraph margin y style.
- p Set Paragraph padding style.
- pb Set Paragraph padding bottom style.
- pl Set Paragraph padding left style.
- pr Set Paragraph padding right style.
- pt Set Div padding top style.
- px Set Paragraph padding x style.
- py Set Paragraph padding y style.
- render Render Paragraph element.
- reverse Set Paragraph element reverse property.
- setShortcodes Set Paragraph element shortcodes instance.
- setTheme Set Paragraph element theme instance.
- strikethrough Set Paragraph element strikethrough style.
- textAlign Set Paragraph element text align.
- textAlignVertical Set Paragraph element text align vertical.
- textOverflow Set Paragraph element text overflow.
- underline Set Paragraph element underline style.
- value Set Paragraph element value.
- w Set Paragraph element width.