DEV Community

Discussion on: CSS and media queries

tnbmorais profile image

I don't know if it fits for you but you could do this in a simpler way, by using flex.

Here's an example:,css...

Also you can check a guide for flexbox:

tyzia profile image
Andrei Navumau Author

Thank you, tnbmorais. Flex is a wonderful technology, which simplifies all my pain with positioning to absolute simplicity.