I have this problem, I have two divs:
<
You can use
display: flex;
CSS property, as mentioned before by @Ayan, but I've created a working example: https://jsfiddle.net/d2kjxd51/