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