Flexbox in css

technical talkiess
0

 Css Flexbox:- 


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Flex box</title>

</head>

<style>

    .container{

        border:1px solid black;

        display: flex;

        flex-wrap: wrap;

        /* agar ek line hogi aur usko center lana hai to align-item center karte hai  */

        /* align-items: center; */

        /* agar multiple line hogi to usko align content karte hai  */

        align-content: center;

        /* direction warap ... flex flow */

        flex-flow: row row-reverse;

        height: 100vh;

        /* row-gap: 12px;

        column-gap: 12px; */

        /*gap: row coloumn */

        gap: 12px 12px;

    }

    .box{

        height: 12px;

        padding: 12px;

        background-color: yellow;

        width: 12px;

        margin: 6px;

        border: 1px solid black;

    }


</style>

<body>

    <div class="container">

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

        <div class="box"></div>

    </div>

</body>

</html>


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)