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...
Thank you, tnbmorais. Flex is a wonderful technology, which simplifies all my pain with positioning to absolute simplicity.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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...
Thank you, tnbmorais. Flex is a wonderful technology, which simplifies all my pain with positioning to absolute simplicity.