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

CSS CSS Layout Techniques Grid Layout Testing our Grid

Rishit Shah
Rishit Shah
4,975 Points

Best css layout technique selection

How do i decide when to use which layout techniques? Does it depend on the complexity or is just a matter of personal choice? Is either one more efficient than other? Also is it advisable to use different techniques to style components of the same web page or different pages of the same website? (eg. using absolute and relative positioning for headers and floats for columns?)

Joshua Briley
Joshua Briley
Courses Plus Student 24,645 Points

Hi there,

There's a host of reasons that would aid in your decision to use a specific layout technique. One of the key concerns is who is actually using the website. If the primary user group is still using older, outdated browsers, then I recommend staying away from flex box.

My recommendation is "start with the user." From that point, consider the performance of the technique. Then the management of that technique. Will it take you longer to manage one technique over the other?

1 Answer

I agree with Joshua on this as well. Starting with the "user" point of view is solid advice. Remember its really hard to make a website that uses absolute positing be responsive. Theses are things that you need to think about.