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 trialEduardo Jonathan Munoz
6,850 Pointsso WHY do we even have to learn display inline , inline block and floats when flexbox is like 100X easier ??
JUST wondering cause it seems a bit confusing , do even modern developers still use display inline , inline blocks and floats when Flexbox is easier , i seriously spent so much time learning inline and blocks and floats and its a pain prolly one of the hardest parts of CSS at least for me , then when i get to FLEXBOX teacher explains that it has the same functionality as inline display , inline blocks and floats i just face palmed and reflected on how i wasted my time learning something that is super hard when there is easier ways to display the same thing CSS layouts is a punishment to my soul !!
2 Answers
Steven Parker
231,248 PointsI wouldn't say it was wasted time. In your professional life, you may be called on to maintain/modify existing code that uses floats and/or different display settings - I often find myself in that situation. So even if you never use these in new designs, the knowledge could still be very useful.
mryoung
4,156 PointsIt’ll probably come up a bunch when you need to maintain older code, so it helps to understand how to use it. Plus, it’s still good to use for its original purpose (floating text around images). Plus, flexbox isn’t completely supported yet, from what I’ve understood.
Also, I’ve struggled with floats and positioning a bunch myself but have found that the more I understand these things, the better I get at CSS and laying out a website. Flexbox is definitely more of an “easy mode” and works wonders when I just can’t get happy with what floats and margins give me too. I understand the struggle.
Steven Parker
231,248 PointsIt's always good to check "Can I Use?", but I think flexbox has very good support in modern browsers. Now grids, on the other hand, are still a bit "edgy".