Learn CSS Grid and Flexbox fundamentals! [A full guide]

Shuvo Habib
7 min readNov 6, 2018

FYI, CSS Grid and Flexbox are the future of Web layouts!

What is the CSS Grid Layout?

CSS Grid layouts are fundamental to the design of websites, and the module is the most powerful and easiest tool for creating it. Thus, Grid Layout gives us a method of creating grid structures that is described in CSS.

Amazing browser support of CSS Grid (src: caniuse.com)

What about, Flex?

The Flex Box module aims at providing a more efficient way to lay out, align and distribute space among items in a container, even when their size is unknown/dynamic.

Amazing browser support of CSS Flex (src: caniuse.com)

Note:

The main difference between CSS Grid Layout and CSS Flexbox Layout is that flexbox was designed for layout in one dimension either a row or a column, on the other hand, Grid was designed for two-dimensional layout rows, and columns at the same time.

Flexbox layout is most appropriate to the components of an application, and small-scale layouts…

--

--

Shuvo Habib
Shuvo Habib

Written by Shuvo Habib

I'm a storyteller about UX, Frontend dev technologies, and A/B testing

Responses (1)