.static-box{
position: static;
-html-
<span class="top">top</span>
<span class="right">right</span>
<span class="bottom">bottom</span>
<div class="left">left</div>
-css-
.top {
position: relative;
top: 5px;
}
.right {
position: relative;
right: 5px;
}
.bottom {
position: relative;
bottom: 5px;
}
.left {
position: relative;
left: 5px;
}
-html-
<div id="parent">
<div id="child">children</div>
</div>
-css-
#parent {
position: relative;
width: 100px;
height: 100px;
background: skyblue;
}
#child {
position: absolute;
right: 0;
}
-html-
<div id="fixed">fixed</div>
-css-
#fixed {
background: yellow;
position: fixed;
left: 0;
}