To set the absolute value, you need to assign this div (in your case) to the relative positioned parent
.level1 { float:left; margin:2px; border-style: solid; background: cyan; position:relative; }
Adding position:relative makes .level1 a kind of coordinate system for all elements inside it.
Take a look at this JSFIDDLE
source share