Thursday, 27 May 2021

Visibility and Z-Index

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Visibility and Z-Index</title>
</head>
<style>
.box{
    width150px;
    height150px;
    border2px solid black;
    border-radius10px;
}

#box1{
positionrelative;
top120px;
    background-colorred;
}
#box2{positionrelative;
z-index-150px;
}
#box3{
positionrelative;
z-index120px;
    background-color:green;
}
#box4{positionrelative;
z-index120px;

    background-color:blue;
}

</style>
<body>
    <div class="box" id="box1"></div>
    <div class="box" id="box2"></div>
    <div class="box" id="box3"></div>
    <div class="box" id="box4"></div>
</body>
</html>

No comments:

Python if / else

 Python if / else a1 = int ( input (" Enter the number: \n ")) a2 = int ( input (" Enter the number: \n ")) a3 = int ( i...