nav > ul > li {
float: left;
}
#one {
float: left;
}
<nav>
<ul>
<li>
he has a cow
</li>
<li >
he has a dog
</li>
<li>
he has a mouse
</li>
</ul>
</nav>
<div id="main">
<div id="one">
<br/>he has a one</div>
<div id="two">he has a two</div>
<div id="three">he has a three</div>
</div>
I am confused as to why all three listed items are floating when only the first listed item is supposed to be floated. Additionally, the div
elements are not behaving like the listed items.