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 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,739 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,739 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!