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

As a principle what should I focus on using in my Webpage - Flex box or floats or box element ?

Considering Flex is the new kid in town, should i ignore other forms of containers like floats etc. I am confused between the right containers for the right job

4 Answers

I'd say that depends on the intended audience of your website/web app. If you're making geeky tech site, probably nobody will be using IE8 for instance, so you'd be safe going flexbox. However, if you're doing some site to be used in schools or from a library you'd probably be better off take the safe route.

Excellent ! Thank you Christian. I think I will stay will flex in that case - I guess, have a problem with learning too many ways of doing the same thing, LOL. Incidentally, while typing this I also got clarity on another topic which was plaguing my mind - RUby Vs Python. Now I now know I should learn Python because it believes in doing things just one way...:)

You could use modernizer to check the browser support and then have a css file for flexbox support and a css for no flexbox support

You know, the support looks pretty good, and they should drop the support for IE10 and below, which means every school woudl need to update their browser, and since the current browsers are better, flexbox looks good.

So is there any way or soemthing that felxbox is going to be the 'main way' in a year or so? uh

Aurelian Spodarec "they should drop the support for IE10 and below, which means every school woudl need to update their browser" - yeah that's not gonna happen for a while. There are tons of grumpy 60 year olds with an electronics degree from 1973 or something that manage school computers and wouldn't ever upgrade the computers unless he has to.

Yeah I've seen that. It might motivate people to upgrade, but it doesn't really force them as it only means there won't be any more security updates - and some don't even do update at all. It's sad.

Ah, I think I understand it. So we might use normal CSS for 10 years or so still?

Hah - yeah maybe :D

Good :D It would be sad if what i have just learned about the normal CSS would be dismissed (most of it) :D good that technology is waiting for me somewhat. Got more time to build my developing foundation xD

Flexi-box is God sent !