.relative-container{
    position:relative;
    height:200px;
    background-color:aqua;
    margin-bottom:40px;
}
.relative-img{
    position:relative;
    top:70px;
    left:70px;
    border:2px solid black;
}
.absolute-container{
    position: relative;
    height:200px;
    background-color:orange;
    margin-bottom:40px;
}
.absolute-img{
    position:absolute;
    bottom:140px;
    left:140px;
    border:2px solid blue;
}
.fixed-img{
    position:fixed;
    top:20px;
    right:20px;
    border:2px solid green;
}
p{
    color:white;
    z-index:10;
}
#box1{
    width: 700px;
    height: 400px;
    background: green;
    position: absolute;
    right: 70px;
    bottom: 70px;
    z-index: 2;
}
#box2{
    width: 600px;
    height: 300px;
    background: purple;
    border: 1px solid black;
    position: absolute;
    right:70px;
    bottom:70px;
    z-index:4;
}