Normally, you set elements to display: inline if you want them to display in the same line. However setting an element to inline means that the width attribute would be mean
Flex is the better way. Just try..
display: flex;