DEV Community

Discussion on: Tip #1 : Centering elements without flexbox and automatic margins

Collapse
 
iamzoka profile image
Zoran Zlokapa

This kind of centering is still useful when you need that element to be outside of the document flow, like overlay or modal. In any other case, use flex. Good tip anyway :)

Collapse
 
gablaroche profile image
Gabriel Laroche

Yeah definitely! :)