CSS Bologna 👨‍🏫

Absolute Positioning

🏡 Home

Absolute Positioning is neither block or inline. This is useful for tooltips and toast elements.

💡
An absolute positioned item can only be contained in an item with a positioned layout (relative, absolute, static, etc.) The item will climb up the DOM until it finds an item with a positioned layout, otherwise it will be positioned to the viewport.
.absoluteOne {
position: absolute;
top:10px;
left:10px
}

.absoluteTwo {
position: absolute;
inset: 0px;
}

.absoluteThree {
position: absolute;
bottom: 10px;
right: 10px;
}

absoluteOne
absoluteTwo
absoluteThree