Display css flex box practice

technical talkiess
0

 <!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>Document</title>
</head>
<style>
    .container{
        width: 100%;
        height: 500px;
        border: 1 px solid black;
        background-color: red;
        display: flex;
        /*flex-direction: row;*/
        flex-direction: column;
        flex-direction: row-reverse;
        flex-direction: column-reverse;
        flex-direction: row;

        flex-wrap: wrap;

        justify-content: center;
        justify-content: space-between;
        justify-content: space-around;

        align-items: center;
    }  
    .box{
        width: 100px;
        height: 100px;
        background-color: gray;
        padding: 3px;
        margin: 10px;

    }
</style>
<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 class="box" id="box5">5</div>
        <div class="box" id="box6">6</div>
    </div>
</body>
</html>
Tags

Post a Comment

0Comments

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

Post a Comment (0)