CSS Flexbox (Flexgrid) and how to use it quick ?
Dev Geos

Dev Geos @dev_geos

About: Coding from some years. Trying to do original things and share it with you. Follow me 😉

Location:
Somewhere
Joined:
Aug 10, 2021

CSS Flexbox (Flexgrid) and how to use it quick ?

Publish Date: Dec 12 '22
3 0

Flexbox make easier design of flexible responsive layout structure.

When you are new to CSS, it can be difficult to create a flexbox grid yourself. The easiest way is to use a framework or library that does it good.
MOD-CSS does this easily and quickly with extensive customization options.

For example,

the following code creates a simple grid with one container, three columns and one row:

<div :mod="container[90%]">
    <div :mod="row[100%]">
        <div :mod="column[20%]"> ...col1 </div>
        <div :mod="column[40%]"> ...col2 </div>
        <div :mod="column[fit]"> ...col3 </div>
    </div>
</div>

Enter fullscreen mode Exit fullscreen mode

Find this snippet on codepen

More examples are available
If you want to see more setup, get links below :
Offical documentation
More example

What is MOD-CSS ?

It was designed to be a good alternative to bootstrap and tailwind.
It is lightweight and quite complete.

Offical website
Github

Comments 0 total

    Add comment