Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Flexbox Layout Understanding Flexbox Flexbox Basics and Terminology

Ivana Lescesen
Ivana Lescesen
19,442 Points

Should I use grid or flexbox for page layout

Hi @guilh thank you so much for your videos. You are great at explaining and I really like your enthusiasm. Could you please tell me should I use Grid or Flexbox for page layout? Why would @Michiel Vo say this in his answer https://teamtreehouse.com/community/best-fallback-for-internet-explorer. Thank you so much :)

2 Answers

Steven Parker
Steven Parker
231,275 Points

There's a newly-proposed CSS feature called "grid" that according to Can I Use? has almost no support yet. But this should not be confused with the "grid layout technique" taught by Treehouse, which uses only basic CSS features which are very well supported.

On the other hand, flexbox is also well supported, with a few known bugs in IE, making it also a good choice.

:information_source: Can I Use? is a very good resource to become familiar with.

Richard Dale
PLUS
Richard Dale
Courses Plus Student 111 Points

Grid will be the layout method of choice when it becomes more widely supported. CSS Grid has been designed with full layouts in mind where Flexbox has not. Grid can do so much more than Flexbox when it comes to layouts. For more info I'd recommend checking out Rachel Andrews blog or her book available on Book Apart.

Max Botez
Max Botez
5,146 Points

@Richard, So that it means you can't just only flexbox technology to make a full layout?