Roman P
1 min readNov 21, 2017

--

Adam Silver what are your thoughts on using a hybrid approach? For example, to center items horizontally and vertically using flexbox you typically need the following CSS:

.random-class {
display: flex;
align-items: center;
justify-content: center;
}

While it’s easy to add these rules to any part of your CSS, it’s probably easier to create a universal class that can be added to any HTML element that requires the behavior:

.layout-center-h-v {
display: flex;
align-items: center;
justify-content: center;
}

--

--