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
Suli S
1,475 PointsConfused about CSS layout
In the CSS course the author mentioned the Flexbox layout but didn't mention the old way of layouts and he said that this Flexbox is limited in support with browsers.
So, now should I use it or not?
1 Answer
Kevin Korte
28,149 PointsCaniuse.com is a great site to check browser support.
http://caniuse.com/#feat=flexbox
You can take a look at the support for yourself and decide if you can use it. Personally, I'm not using flexbox yet. I can't wait until it has better support though.
The super old layout structure was using tables..yuck. What has been happening the past few years are divs with floats and widths. Also known as a grid in CSS. I'm still using a "grid" for my CSS layout.
Thomas MacFarlane
2,430 PointsThomas MacFarlane
2,430 PointsYou can get a really good understanding of the current layout methods by familiarizing yourself with Twitter Bootstrap. There are some videos in http://teamtreehouse.com/library/programming/build-a-simple-ruby-on-rails-application/frontend-development (Of all places) but I found those videos really helped me and should be replicated in the section on CSS imo.
:)
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsI use bootstrap a lot, and it's a great tool. However, it can be dangerous if you base your design around a framework like bootstrap instead of coming up with the layout solutions yourself. I also feel pretty strongly that you should know enough about CSS page layouts to understand how a framework works like bootstrap before using it.
With that said, I have two soon to be released sites both on bootstrap 3 right now.
Thomas MacFarlane
2,430 PointsThomas MacFarlane
2,430 PointsYeah, see, it was the opposite for me, I didn't properly understand CSS layouts until I used Bootstrap. I guess everyone learns differently.