I am not sure why the float function is not working for you. If it is not working, you can use the flex-box layout function.
First, nest the headers inside a div. So you will have a parent div and two headers inside that.
now style the parent element like this.
This is all you need to add to get your two headers side by side.