What's flexbox? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What's flexbox?

28th Aug 2019, 2:37 AM
P.B
P.B - avatar
4 Answers
0
Flexbox is an auto-width calculated grid system where you dont have to specify how much space it will grab for each columns. In Grid, if i compare this with flexbox, you have to specify the value such as class="col-lg-6" or class="col-sm-6" which means dividing the 12 grid system into two parts. This is an explicit definition. Whereas with flexbox, you dont have to specify such condition. By default all the elements will get aligned in a series of straight line with proper indentation, padding, and margin. The word 'flex' comes from the word 'flexible' and that is how flexbox is more 'flex'ible and reliable than grid system. Hope this helps
30th Aug 2019, 5:27 PM
Rohan Rao
Rohan Rao - avatar
+ 4
28th Aug 2019, 6:18 PM
Anwar Ali
Anwar Ali - avatar
+ 1
Hmm.. Thanks
28th Aug 2019, 2:42 AM
P.B
P.B - avatar
28th Aug 2019, 2:38 AM
Uchiha Itachi
Uchiha Itachi - avatar