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 trialJoseph Szoke
15,087 PointsWhen to use flex box?
Just looking for some opinions!
I just build my first site which is my portfolio using good ol margins and padding. I did this just to learn margins and padding better.
When should I use grid? Or flexbox? When it comes to building a page layout? Or should I always be using grid or flexbox?
I understand vendor support usually is the problem with flexbox but can be battled with scss.
Any insight would be great!
Thanks, Joe
1 Answer
Kay Ouchida
10,480 PointsPersonally I think the Flexbox layout mode is very important to use when building a website. The use of different screen sizes in today's world is vast and developers are moving in the direction of making most sites all device friendly for maximum accessibility. Personally I've been learning a great deal about flexbox here: http://css-tricks.com/snippets/css/a-guide-to-flexbox/
Joseph Szoke
15,087 PointsJoseph Szoke
15,087 PointsKay,
Thanks so much for the response. I guess I was wondering if everyone mostly uses flexbox for layout.
CSS-tricks is a great site, they explains things very well.
Joe