I have a div with some inline elements inside it. I want to put one of the elements on the left and the rest over on the right:
+---------------------------+
One simple solution is to add overflow:auto
to the container in order to solve this. This will cause the container to expand to contain its floats but will make scrollbars appear if for some reason someone additionally sets a small height for the container.
There are also other alternatives that also work and might be better in other cases. See this question and its second answer for a good overview on the problem.