Layout Component
- Create layouts with ease.
- Center content.
- Use flexboxes with fallbacks.
Rows and Columns
We use several techniques for creating rows or columns in a container:
-
absolute
Absolute positioning
-
fluid
For columns
inline-block
is used and for rowspaddings
and negativemargins
are used, e.g. for the cases like: header, content, footer. -
flex
Flexbox model is applied. And the
fluid
fallback is used for the browsers, which do not support this.
Rows
Examples:
l:rows:absolute (50px, flex, auto) l:rows:fluid (100px, flex, flex) l:rows:flex (50px, flex, flex, auto)
Columns
Examples:
l:cols:absolute (50px, flex, auto) l:cols:fluid (100px, flex, flex) l:cols:flex (50px, flex, auto)
Center
Vertical AND Horizontal centering of the content.
l:center
Examples
# install atma toolkit npm install atma -g# run server atma server # navigate `http://localhost:5777/examples/EXAMPLE_NAME.html`
Test
npm test
©️ MIT - Atma.js Project