Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
215,984 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?