Lorem ipsum dolor sit amet consectetur adipisicing elit. And some other content bla, bla, bla.
- GRIDBOX use the same logic as Bootstrap = 12 columns layout, the layout is created by rows & columns AND our GRIDBOX use the same class names for them !!!
- GRIDBOX is set as DIV with class="gridbox" OR class="row gridbox" and columns class="col" OR "col-6" OR "col-sm-6" etc.
- GRIDBOX against to Bootstrap don't use default col/paddings(15px) & row/negative-margins(-15px), in our Framework is it all reset to "zero" from the start
- GRIDBOX margin/paddings can be adjusted globaly for rows/cols OR indenpendently when content is wrapped into DIV(s) "box" (width = 100%) / "box-col" (width = fit-content)
- GRIDBOX "box" and "box-col" are primarily used for setting the content indent (margin/padding) in columns or anywhere else out of Gridbox/Flexbox
- GRIDBOX can be wrapped by "container" for setup next margins/paddings around and align it via class="go-left / go-center / go-right"
- NOTICE: DIV with only alone class="row" is defaultly FLEXBOX, to change it on GRIDBOX you have to A) insted of "row" use "gridbox" B) add grid as "row gridbox".
MIX - where parent (green-bordered) GRIDBOX has more nested GRIDBOXes or FLEXBOXes inside
Column A with child GRID rows
Column B with child FLEX rows
.w-100 & .h-100
check source-code
GRID with SUBGRID - subgrid takes-over the properties of the parent grid, what is useful for the same inside repeated elements, like Cards etc.
Lorem ipsum dolor sit amet consectetur adipisicing elit. And some other content bla, bla, bla.
Lorem ipsum dolor sit amet consectetur adipisicing elit. And some other content bla, bla, bla.
Lorem ipsum dolor sit amet consectetur adipisicing elit. And some other content bla, bla, bla.
GAP(s) - are the same for both GRIDBOX and FLEXBOX
- Gaps in range gap-0 ... gap-10 (from 4px to 40px), where 1rem = 16px and gap step = 0.25rem
- Gridbox/Flexbox pre-defined default "gap" is 0
No Gap
.gap-4 (4 * 0.25rem = 16px)
GRIDBOX columns positioning
CONTAINERS Wdths & Alignments
Containers are not direct part of Flexbox/Gridbox, they are designed to positioning of Flexbox/Gridbox .go-left / .go-center / .go-right
In general DEMO "container" has max-width = 1400px, but Framework include also containers with fixed widths SM / MD / XL /XXL (set by break-points) + "container-fluid" = 100%
Grid Auto-fit
Auto-fit set all boxes to equal-widths in row (items are responsive, but don't break in row), items must have set some min "width" !!!.
Grid Auto-fill
Auto-fill set all boxes in row as much as it possible (items are not responsive with fixed OR min-max width), when is not enough space after row breaks to new row.
Gaps (works in both FLEXBOX & GRIDBOX)
default = zero, .gap-x in range from 0 to 10 (by steps = 0.25rem where 1rem = 16px), check source-code and try to change it yourself, via Developer Toolbar in Browser, example: gap-4
OTHER Gridbox Helpers ...
- .grid-align-center / .grid-justify-center - align content vertically / align content horizontally
- .grid-equal-height - grid with equal height cells
DASHBOARD DEMO example with grid-areas, for more check HTML / SCSS / CSS source code or CHEATSHEETS links
Please, check HTML and SCSS / CSS source code
Header Area
This header spans the full width in all layouts.
Content Area
This is the main content area. It spans 2 columns on desktop but takes full width on mobile.
The grid-areas template handles all the layout changes based on screen size.
12-column FLEXBOX (like the Bootstrap, the same ".class names", the same "behaviour") Go to TOP
- FLEXBOX works and use the same ".class-names" for "row & col" as GRIDBOX
- FLEXBOX is defined(setup) as DIV class="row" OR DIV class="flex" OR DIV class="row flex"
- FLEXBOX content is located in DIV class="col" OR "col-6" OR "col-sm-6" etc. inside of rows
- FLEXBOX against to Bootstrap don't use default col/paddings(15px) & row/negative-margins(-15px), our Framework has from the start all margin/paddings to zero
- FLEXBOX margin/paddings can be adjusted globaly for rows/cols OR indenpendently when content is wrapped into DIV(s) "box" (width = 100%) / "box-col" (width = fit-content)
- FLEXBOX "box" and "box-col" are primarily used for setting the content indent (margin/padding) in columns or anywhere else out of Gridbox/Flexbox
- FLEXBOX can be wrapped by "container" for setup next margins/paddings around and align it via class="go-left / go-center / go-right"
FLEXBOX (container centered as default)
Basic Flexbox row/col like "col-4" without break-points sm, md, lg, xl, xxl like "col-sm-4" etc. are responsive in all widths, not switched by break-points
FLEXBOX parent (border-2px-green) with more nested FLEXBOXes inside
First column with more child rows
Second column with more child rows
.box-fit, .h-100
not .w-100
check source code
FlEXBOX and "box-fit" width AND height 100%
flex-row + ".items-stretch" = all col(s) inside cover entire row height (!),
but "box-fit" (bgrd-color gray) as nested item has own height,
when you want it 100% height also, you have to add .h-100" for them.
.box-fit & .h-100 & .w-100
Flexbox offsets - under SM (576px) is offset reset to zero (!)
Column reordering, container-fluid (see source code how to apply first/last sm, md, lg, xl, xxl)
not-ordered columns
re-ordered columns
OTHER Flexbox Helpers ...
- .items-stretch - class for "row", stretch all inside columns to 100% of row height
- .align-start / .align-center / .align-end - items alignment in row or column
- .boxes-inline / .boxes-vertical - wrapper for more .box / .box-fit and their ordering
- .col-dir-row / .col-dir-col - items direction in Flexbox columns
- .justify-items-between / .justify-items-evenly / .justify-items-around / .justify-items-left / .justify-items-right - items position in Flexbox columns