What is flexbox in HTML?? Please describe it with code.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is flexbox in HTML?? Please describe it with code....

26th Jun 2018, 5:52 PM
Sameer Kumar Saha
Sameer Kumar Saha - avatar
4 Answers
+ 9
play a bit with this might give you a better idea https://code.sololearn.com/Wqwc2gEQ7sR7/?ref=app
26th Jun 2018, 7:03 PM
Burey
Burey - avatar
+ 3
Those are two modern ways in css to create a responsive website layout - position your content, align its items, and adjust them to screen size. Flexbox is a horizontal layout while css grid is two dimensional. Purpose of Flexbox: Before flexbox people used column and row classes to position page content (like in Bootstrap 3). The issue with that was item alignment, spacing, responsiveness etc. inside and between columns. All that is solved with flexbox with very little css. (The dreaded vertical align was a problem with many hack solutions before flexbox.) The new bootatrap 4 uses flexbox now.
26th Jun 2018, 5:56 PM
MsJ
MsJ - avatar
+ 1
Thanks Mohit the coder..
26th Jun 2018, 5:59 PM
Sameer Kumar Saha
Sameer Kumar Saha - avatar
26th Jun 2018, 6:05 PM
MsJ
MsJ - avatar