CSS Positioned

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        .container{
            border2px solid black;
            height15500px;
            background:khaki;
        }
        /* CSS postition: static (default), absolute, relative, fixed, sticky */
        .box{
            displayinline-block;
            border2px solid red;
            width:  150px;
            height150px;
            margin2px;
        }
        #box3{
            /* relative: relative gives gap to its normal position */
            /* position: relative; */
            /* absolute: relative to the position of its first parent*/
            /* position: absolute; */
            /* top: 34px;
            left: 155px; */
            position:sticky;
            top9px;
        }
    </style>
</head>
<body>
    <div class="container">
    <div class="box" id="box1">1</div>
    <div class="box" id="box2">2</div>
    <div class="box" id="box3">3</div>
    <div class="box" id="box4">4</div>
    </div>
</body>
</html>