Sunday, October 17, 2021

The Flex direction property

 The Flex direction property Code

<!DOCTYPE html>

<html>

    <head>

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

         <link rel="STYLESHEET"type="text/css"href="web.css">

        <title>web design</title>

    </head>

    <body>

        <h1>The Flex direction Property</h1>

        <div class="flex">

            <div>1</div>

            <div>2</div>

            <div>3</div>

        </div>

    </body>

</html>


CSS Fex direction Style Code

.flex{

    display: flex;

    flex-direction: column;

    background-color: dodgerblue;

}

.flex >div{

    background-color: #f1f1f1;

    width:100px;

    margin:10px;

    line-height:75px;

    font-size:35px;

}



No comments:

Post a Comment

JavaScript Animated

  JavaScript Animated <!DOCTYPE html> <html> <style> #myContainer {   width: 400px;   height: 400px;   position: relative;...