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

Ugur Aydin
Ugur Aydin
5,324 Points

Is flexbox layouts more superior to other layout methods?

As much as I understand, it is. However, when laying out a page, can you solely use the flexbox method?

I'm spending a lot of time to become highly familiar with the flexbox properties and what each one does. I'm getting a little worried that I may be spending to much time on it because I couldn't figure out how to create a simple layout.

I was trying to make a header and image stack as a column on the left, and a paragraph to center align on the right side of it.

Isit good practice to use all layout methods when needed or can all layouts be achieved just by using flexbox?

1 Answer

I am not a flex box expert, but flex box is great for laying out rows or blocks, product blocks, navigation. There is a CSS grid layout on it's way. Expect it might work within 2 years ... more info at https://24ways.org/2015/grid-flexbox-box-alignment-our-new-system-for-layout/