Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html dir=rtl>
<title>Reference: position-area overflow alignment against ICB - scrollable RTL</title>
<style>
.anchor {
border: solid orange 20px;
position: absolute;
margin: auto;
top: 50%;
left: 50%;
}
.above, .below, .left, .right {
border: solid blue 3px;
padding: 2px;
position: absolute;
width: 0;
height: 0;
}
.above { top: 0; left: 50%; height: 60vh; margin-left: 25px; }
.below { top: 50%; left: 50%; height: 60vh; margin-left: 5px; margin-top: 40px; }
.left { right: 50%; top: 50%; width: 60vw; margin-top: 25px; }
.right { right: 0; top: 50%; width: 60vw; margin-top: 5px; }
html { height: 150vh; width: 150vw; }
</style>
<div class=anchor></div>
<div class=above></div>
<div class=below></div>
<div class=left></div>
<div class=right></div>