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

guarlonmirka
guarlonmirka
10,192 Points

Css Layout

I can see that Css layout can be used in different way (Float layout/Flexbox layout/ Grid Layout). Do I have to choose one of these layout or I have to use all of them at once. if not which one should I use?

1 Answer

Ronny Gudvangen
Ronny Gudvangen
4,685 Points

If new to CSS and HTML I think float is the way to go at this moment. Either if you use float or flexbox - or even tables, you kinda have to choose some general grid system for your site. This makes sure the flow is symetrical, and makes it easier to maintain you're site as it grows in content. The 960 grid system is a good starting point. Or you can use frameworks like Bootstrap and Foundation (not a good way to start though).

Either way, go with what you are comfortable with. When you evolve the need for more complex layouts will come by it self - when and if the situation requires it :).