DEV Community

Discussion on: CSS and media queries

Collapse
tnbmorais profile image
tnbmorais

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: jsbin.com/defamihada/edit?html,css...

Also you can check a guide for flexbox: css-tricks.com/snippets/css/a-guid...

Collapse
tyzia profile image
Andrei Navumau Author

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