Sat Sep 17 2022

Draw a Kite

CSS0 views

File Name: draw-kite.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Drawing a Kite</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #292929;
        }

        section {
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        div.kite {
            width: 0;
            height: 0;
            position: relative;
            border: 60px solid transparent;
            border-bottom: 70px solid #ff9900;
        }

        .kite::before {
            position: absolute;
            content: '';
            border: 60px solid transparent;
            border-top: 70px solid #ff9900;
            left: -60px;
            top: 70px;
        }

        .kite::after {
            position: absolute;
            content: '';
            border: 30px solid transparent;
            border-bottom: 40px solid #ff0000;
            top: 108px;
            left: -30px;
        }
    </style>
</head>
<body>
    <section>
        <div class="kite"></div>
    </section>
</body>
</html>

Result Screenshot(s)

Draw a KiteWorking Sample0

We use cookies to improve your experience on our site and to show you personalised advertising. Please read our cookie policy and privacy policy.