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
Dione Marshall
6,184 PointsFlexbox
So what is best practice when using Flexbox in terms layout? Should you use Flexbox to customize the layout of a page or use simple techniques (padding, margins, floats, display, positions) instead?
1 Answer
Luke Pettway
16,593 PointsYou can use flexbox for page layouts, or specific UI component layouts as well. You will still use margins/padding with flexbox, but you won't have to rely on them nearly as much. There are also still a lot of situations where floating and positioning are still useful especially when it comes to fixed elements.