HEADER ADS 728X90

FLEX BOX ITEM CSS TUTORIAL ll BY Ascode

css tutorial,css,css tutorial for beginners,html css tutorial,tutorial,html and css tutorial for beginners,tutorial css,css tutorial ita,html css tutorial ita,html tutorial,html css,css grid,css3 tutorial,tutorial de css,html e css tutorial,html and css tutorial,css tutorial in hindi,css tutorial italiano,complete css tutorial,css beginners tutorial,tutorial css italiano,css for beginners,complete css tutorial in hindi,css crash course,css flexbox tutorial,css flexbox,flexbox tutorial,css tutorial,css,css flexbox tutorial for beginners,css flexbox tutorials,flexbox css,flexbox,tutorial,css flexbox tutorial in hindi,html tutorial,best css flexbox tutorial for beginners,flexbox tutorials,css tutorial for beginners,css flexbox layout,flexbox vs css grid,how to align content using css flexbox,css flexbox explained,flexbox layout,learn to use flexbox in css, ascode, coding tutorial, how to learn coding easy way to learn coding

Hi dear welcome to Ascode Blog . In this post we are going to learn to CSS Flex-Box Understanding. First Creat A index.html file Copy This HTML CODE and pest it one your code editor. 2ndly creat style.css file Then Copy The CSS CODE and pest it then open the index.html file with your browser.

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">
    <titleCSS Flex-Box </title>
</head>
<body>

    <div class="flex-box">
        <div class="flex-box-1"></div>
        <div class="flex-box-2"></div>
        <div class="flex-box-3"></div>
        <div class="flex-box-4"></div>

    </div>
   
</body>

</html>

CSS

*{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    /* main-property */

    .flex-box {
      display: flex;
        width: 700px;
    }
    /* main-property */
    .flex-box .flex-box-1 {
        width: 200px;
        height: 200px;
        background:red;
        margin: 10px;
    }
    .flex-box .flex-box-2 {
        width: 200px;
        height: 200px;
        background:blue;
        margin: 10px;
    }
    .flex-box .flex-box-3 {
        width: 200px;
        height: 200px;
        background:green;
        margin: 10px;
    }
    .flex-box .flex-box-4 {
        width: 200px;
        height: 200px;
        background:orange;
        margin: 10px;
    }

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram