HEADER ADS 728X90

CSS Z-INDEX 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,css beginners tutorial,tutorial css italiano,css html tutorial in hindi,complete css tutorial in hindi,html css website design tutorial,css tutorial,css,z-index,css z index,z-index in css,css z-index tutorial,z-index css tutorial,css z index tutorial,z index css tutorial,tutorial,css z-index,z-index css,css z-index tutorial bangla,css tutorial for beginners,css tutorial in hindi,css z-index hindi,css z-index property,z index css,css positioning tutorial,css layer z-index,css z-index explained,z-index tutorial,z-index css3,zindex,css position,css position tutorial,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 Z-index property. 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">
    <title>z-index css</title>
</head>
<body>

    <div class="bg1"></div>
    <div class="bg2"></div>
   
</body>
</html>

CSS

 body{
        position: relative;
        display: flex;
        justify-content: center;
        min-height: 100vh;
        align-items: center;
    }

    .bg1 {
        background: red;
        width: 300px;
        height: 300px;
        border-radius: 5px;
       
        /* change z-index value you will see diffrence */
        z-index: 1;
    }
    .bg2 {
        background: blue;
        width: 300px;
        height: 300px;
        border-radius: 5px;
        transform: translateX(-100%);

         /* change z-index value you will see diffrence */
        z-index: 2;
    }

Youtube Tutorial

FLOW US ON SOCIAL MEDIA

Post a Comment

0 Comments

Join Telegram