From the course: CSS: Advanced Layouts with Grid
Unlock the full course today
Join today to access over 23,200 courses taught by industry experts.
Now that we have CSS Grid, do I still need to learn Flexbox? - CSS Tutorial
From the course: CSS: Advanced Layouts with Grid
Now that we have CSS Grid, do I still need to learn Flexbox?
- In recent years, CSS has evolved to give us new layout modules that allow us to create these new dynamic responsive layouts that look quite different from what we could do in the past. Those new modules include Flex, or Flexbox, and Grid, and when you look at it, it almost looks like Flex was a stopgap measure between what we had before, which was just table and float, and what we have now, which is Grid. People often ask me, now that we have Grid, if they should bother learning Flex. The answer, of course, is yes, you should because float, Flex, and Grid are all part of the layout system we have in the browser and they can all be used to benefit the layout. So, let's take a look at what they are and what they can do, starting with float. So, float is taking an element that is inside an existing context, like for instance, an inline image or an image that's placed inside some other content, in this case, a paragraph, and then saying float that image or element in context to the left…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.