Flegobox, ready to cook flex!
The flexbox layout is a relatively new layout mode that enables the creation of predictable layouts when displaying in different screens and with different content size. This makes it a great tool for making modern and responsive websites in an easy way, including the holy grail layout.
This layout (instead of block layout) provides through CSS properties the possibility to design ordered, rich and easy to understand layouts.
A
B
C
Angular Material uses this as it’s layout foundation. It provides a way to use attributes to set the flex properties for elements.
A
B
C
This is quite convenient, since you can set up the layout of your app without having to go on setting classes for every layout piece that you want to arrange. We use that a lot.
But sometimes we want to fire a small project up with all the angularmaterialflexgoodness without the whole Angular battleship. That’s why Alexander created Flegobox, which is just the Angular Material’s CSS to use the flexbox layout through some classes in a very friendly way.
A set of classes are available with very intuitive prefixes and they all work in the same way as the original.
A
B
C
See related posts
Automated Testing Applied
Let’s explore how automated testing has made developers’ work more efficient and diverse.
Learn About Web Accessibility
Web accessibility is an essential pillar in developing and designing websites and applications that everyone can use.