As I understand float:left, it will push the subsequent element to its left rather than on a new line.
float:left
In the following example I would expect that the
CSS:
.inline { float:left; position:relative; width:auto } .yellow { background-color:yellow; position:relative; float:left; }
see fiddle