Flexbox or floats would be better than using absolutely positioned elements.