<style>
.box {
background-color: lightblue;
padding: 10px;
}
.box.static {
position: static;
}
</style>
Output
<style>
.box {
background-color: lightblue;
padding: 10px;
}
.box.relative {
position: relative;
top: 20px;
left: -30px;
}
</style>
Output
<style>
.box {
background-color: lightblue;
padding: 10px;
}
.box.absolute {
position: absolute;
top: 20px;
left: -30px;
}
</style>
Output
<style>
.box {
background-color: lightblue;
padding: 10px;
}
.box.fixed {
position: fixed;
right: 20px;
}
</style>
Output