skip navigation

Positioning

To get absolute positioning to work the way it’s supposed to, that is an element is positioned inside its parent, the parent must also have a position value of relative or absolute or fixed, but not static, which is the default.

.outerbox {
	position: relative;
}

.innerbox {
	position: absolute;
    bottom: 13px;
    right: 23px;
}

Click the button to toggle the outer box’s position value.