I want to make something like this:
I have written it all, but can't make 3 divs appear one on the top of another.
How can I make it so that the red, blue and yellow colours are on one-another ?
.box{
width:150px;
height:150px;
}
.red{
background:#bf1900;
}
.yellow{
background:#bfa900;
}
.blue{
background:#1d00bf;
}
.green{
width: 100%;
height: 100px;
background:#00700f;
position: absolute;
bottom: 0;
}
.black{
background: black;
position: absolute;
top: 0;
right: 0;
width: 250px;
}
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box red"></div>
<div class="box yellow"> </div>
<div class="box blue"> </div>
<div class="box green">Always on the bottom with 100% width</div>
<div class="box black"><font color="white">Always on the right top</font></div>
</body>
</html>