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.
If we use Flexbox CSS properties, do we still need to use floats and inline or block properties?
In the workspace I saw both CSS properties being used.
Steven Parker210,973 Points
Depending on what you need to accomplish, you may use more than one tool in the same project but not necessarily on the same element. Clearly, any one element cannot have a display set to both "block" and "flex" at the same time. But you could use them on different elements.
On the other hand, since flexbox can do most anything you might use "float" for, but it gives you more control, once you're comfortable with flexbox you might tend to use it exclusively for those kind of layout needs.
Thank you, yes I am much more comfortable with Flexbox, I tend to get really confused about which classes and ids should receive what properties, I think I lack confidence as I don't really have had much real life practice in web developing.