DEV Community

Discussion on: Centring an element on a page

Collapse
 
trostcodes profile image
Alex Trost

I can’t agree with Jordan more. The absolute positioning methods explained here don’t allow for changes in screen or content size. Please use flex box and Grid to center things.

Thread Thread
 
davey profile image
Davey

Thanks for the feedback Alex. I’m fairly new to CSS so thanks for explaining :)