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.

CSS CSS Flexbox Layout Building a Layout with Flexbox Creating a Sticky Footer with Flexbox

just Flexbox?

Hello So if I understand well, basically we just need to use Flexbox? Float etc is not really useful after Flexbox? Thanks

Jasmin

3 Answers

Richard Verbraak
Richard Verbraak
7,723 Points

As far as I know, by googling and reading upon using Flex / Floats / Grids. Out of all these Layout options, Float isn't used as much as the other 2.

Flexbox and grids are just better alternatives than float. That doesn't mean that floats are deprecated. You can still use it for blog posts and wrapping text around an image or a div for example.

My personal opinion is just to avoid them at all times since they are bad for responsiveness on your site and are in general, clunky to work with. But that's my opinion, they have their use here and there.

Hello Richard, Thanks for your reply. You mean by 'avoid them'... 'them' is only floating I guess?

Richard Verbraak
Richard Verbraak
7,723 Points

No problem. And yes, I was talking about floats ;) Just stick to flexbox and grids as much as possible for your layouts.

got it, thanks a lot!