Loading

Loading

Spacing

Phenix includes a wide range of shorthand responsive margin, padding, utilities classes to modify an element’s appearance.

Padding Utilities

phenix provide a range of shorthand responsive padding classes you can set a padding for individual properties, all properties, and vertical and horizontal properties with a responsive breakpoint to begin with like any other responsive utilities you add -{breakpoint} after the utility prefix for example .pd-md-* to add padding to the element for the medium screens size and up,

in the table below you can learn the pattern for each class name and its available values.

Class nameDescriptionMarkup
.pd-*add padding for all direction.<any>
.pdx-*add padding horizontally.<any>
.pdy-*add padding vertically.<any>
.pdt-*add padding top.<any>
.pdb-*add padding bottom.<any>
.pds-*add padding start [ltr=left], [rtl=right].<any>
.pde-*add padding end [ltr=left], [rtl=right].<any>
**-5adding value equal to 5px for padding classes.<any>
**-10adding value equal to 10px for padding classes.<any>
**-15adding value equal to 15px for padding classes.<any>
**-20adding value equal to 20px for padding classes.<any>
**-25adding value equal to 25px for padding classes.<any>
**-30adding value equal to 30px for padding classes.<any>
**-40adding value equal to 40px for padding classes.<any>
**-50adding value equal to 50px for padding classes.<any>
**-75adding value equal to 75px for padding classes.<any>
**-100adding value equal to 100px for padding classes.<any>
Note : all values of px are transformed to REM instead on the base of 16px.
Responsive PatternDescriptionBreakpoints
.pd-{breakpoint}-*add padding for all direction.md, lg, xl
.pdx-{breakpoint}-*add padding horizontally.md, lg, xl
.pdt-{breakpoint}-*add padding vertically.md, lg, xl
.pdt-{breakpoint}-*add padding top.md, lg, xl
.pdb-{breakpoint}-*add padding bottom.md, lg, xl
.pds-{breakpoint}-*add padding start [ltr=left], [rtl=right].md, lg, xl
.pde-{breakpoint}-*add padding end [ltr=left], [rtl=right].md, lg, xl
Note : ( —— ) refer to the same value as the column before.

Margin Utilities

phenix provide a range of shorthand responsive margin classes you can set a margin for individual properties, all properties, and vertical and horizontal properties with a responsive breakpoint to begin with like any other responsive utilities you add -{breakpoint} after the utility prefix for example .mg-md-* to add margin to the element for the medium screens size and up,

in the table below you can learn the pattern for each class name and its available values.

Class nameDescriptionMarkup
.mg-*add margin for all direction.<any>
.mx-*add margin horizontally.<any>
.my-*add margin vertically.<any>
.mt-*add margin top.<any>
.mb-*add margin bottom.<any>
.ms-*add margin start [ltr=left], [rtl=right].<any>
.me-*add margin end [ltr=left], [rtl=right].<any>
**-autoadding value of auto for margin classes.<any>
**-5adding value equal to 5px for margin classes.<any>
**-10adding value equal to 10px for margin classes.<any>
**-15adding value equal to 15px for margin classes.<any>
**-20adding value equal to 20px for margin classes.<any>
**-25adding value equal to 25px for margin classes.<any>
**-30adding value equal to 30px for margin classes.<any>
**-40adding value equal to 40px for margin classes.<any>
**-50adding value equal to 50px for margin classes.<any>
Note : all values of px are transformed to REM instead on the base of 16px.
Responsive PatternDescriptionBreakpoints
.mg-{breakpoint}-*add margin for all direction.md, lg, xl
.mx-{breakpoint}-*add margin horizontally.md, lg, xl
.my-{breakpoint}-*add margin vertically.md, lg, xl
.mt-{breakpoint}-*add margin top.md, lg, xl
.mb-{breakpoint}-*add margin bottom.md, lg, xl
.ms-{breakpoint}-*add margin start [ltr=left], [rtl=right].md, lg, xl
.me-{breakpoint}-*add margin end [ltr=left], [rtl=right].md, lg, xl
Note : ( —— ) refer to the same value as the column before.

All rights reserved © 2016 – 2024 Phenix Tools (Abdullah.Ramadan)

On This Page