Flexbox
Flexible organizing with flexbox
CSS is used to order and style HTML elements. A big part of this is organising elements in a visually attractive way. This can be done using flexbox
.
What it does is helping you to think according to grid-based web design
: elements are not randomly placed on the page, but are neatly organised along a grid.
Read the following to learn more about 'grid-based web design':
Once you understand this way of thinking you'll know why it makes sense to use flexbox
.
In order to make use of it we have to access it through the display
CSS property:
This will give us the flexbox
-specific properties, so we can develop clean and organised CSS. Check the following links to understand how this is done:
Flexbox Layout - Example:
Create a flexbox layout:
Further Resources:
Learn Flexbox CSS in 8 minutes (Youtube)
Help us improve the content 🤩
You can leave comments here.
Last updated