zindex and visiblity property in css 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>z- indx practic and display propertis</title>
</head>
<style>
    .box{
        width: 300px;
        height: 100px;
        border: 1px solid black;
    }
    #box1{
        position: relative;
        top: 35px;
        /* z-index: 1; */
        background-color: greenyellow;
    }
    #box2{
        background-color: red;
    }
    #box3{
        background-color: violet;
        /* div is not visibl but spac avaible of the div */
        /* visibility: hidden; */
        /* display:none; */
       /* div space not avaiabl completely  not visible */
    }
    #box4{
        position: relative;
        top: 100px;
        background-color: teal;
    }
</style>
<body>
   <div class="container">
    <div class="box" id="box1"></div>
    <div class="box" id="box2"></div>
    <div class="box" id="box3"></div>
    <div class="box" id="box4"></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)