Separate Panel Scrolling

HTML Shapes

Tree Using HTML and CSS




<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tree Using HTML and CSS</title>

    <style>
     

        .tree {
            position: relative;
            width: 250px;
            height: 350px;
        }

        /* Tree leaves */
        .leaves {
            position: absolute;
            top: 20px;
            left: 25px;
            width: 200px;
            height: 200px;
            background: forestgreen;
            border-radius: 50%;
            box-shadow:
                -45px 35px 0 -10px forestgreen,
                45px 35px 0 -10px forestgreen,
                0 65px 0 -5px forestgreen;
            z-index: 2;
        }

        /* Tree trunk */
        .trunk {
            position: absolute;
            top: 180px;
            left: 100px;
            width: 50px;
            height: 140px;
            background: saddlebrown;
            border-radius: 5px;
            z-index: 1;
        }

        /* Grass */
        .grass {
            position: absolute;
            bottom: 10px;
            left: -100px;
            width: 450px;
            height: 25px;
            background: green;
            border-radius: 50%;
        }
    </style>
</head>
<body>

    <div class="tree">
        <div class="trunk"></div>
        <div class="leaves"></div>
        <div class="grass"></div>
    </div>

</body>
</html>
Separate Panel Scrolling