Just getting started with HTML and CSS, I'm working through my Web Design courses and running into an issue on one of my pages. I want to float two divs side by side, with one floating left and the other floating right. However, no matter what I try, the first div won't float left and the second div ends up underneath it when floated right. It seems like such a simple thing, but I can't seem to figure out what's going wrong.
#services {
float: left;
}
#contact {
float: right;
font-weight: bold;
font-style: italic;
}
<main>
<div id="services">
<h2>Services</h2>
<p>Lorem ipsum dolor sit amet, natoque pharetra... (content continues)
Any help would be greatly appreciated!