Can I apply both position: relative and float: left on one element? Like this:
position: relative
float: left
div { float: left; position: relative; top: 0px;
Yes.
CSS2.1, 9.4.3:
"Once a box has been laid out according to the normal flow or floated, it may be shifted relative to this position. This is called relative positioning"