Untitled

mail@pastecode.io avatar
unknown
aql
a year ago
1.1 kB
2
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Random Boxes</title>
    <style>
        body {
            background-color: skyblue;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }

        .box {
            width: 100px;
            height: 100px;
            background-color: #fff;
            position: absolute;
        }

        /* Generate random position for each box */
        .box:nth-child(1) {
            top: 50px;
            left: 100px;
        }

        .box:nth-child(2) {
            top: 150px;
            left: 200px;
        }

        .box:nth-child(3) {
            top: 250px;
            left: 300px;
        }

        /* Add more .box:nth-child() rules for additional boxes */
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <!-- Add more <div class="box"></div> elements for additional boxes -->
</body>
</html>