I don't understand why the div.class moves to the right bottom.
I really want to know the meaning of '0' precisely in fixed position.
Why does the border never stretch to the right side if I change (bottom: 0; right: 0;) into (top: 0; right: 0; bottom: 0; left: 0;)?
div.fixed {
position: fixed;
width: 300px;
bottom: 0;
right: 0;
border: 3px solid #73ad21;
}
<h2>position: fixed;</h2>
<p>An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled:</p>
<div class="fixed">
This div element has position: fixed;
</div>