Floating Elements with Positioning in DHTML


One element can be made to float relatively to another element, such as an absolute element, by setting the position property to absolute and relative values for respective elements and by using the float property.

.fixed { position: absolute; }
.floater { position: relative; float: left; }