Another way of positioning these in a responsive manner would be flexbox in combination with margins:
and not worry about calculating margins
Thank you, morefox. Flex - is a completely new thing for me, but I have already tried it out and I love, how simple is to code with flex.
there are also frameworks such as bulma.io and bootstrap v4 also uses flexbox, a tool that has been long awaited by frontend devs for solving the most simple layout and grid problems
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.