Hello people! I am new to using codepen and came across a small issue that is giving me a headache. I created 3 divs, 3 squares one being red, blue and yellow. When the positioning of each div is set to relative, I get to see the 3 squares, but when i change it to relative i can only see one square (usually the last div. Any ideas what it can be? thankyou. My code
/HTML/
/CSS/
.red{
height: 100px;
width:100px;
background-color:red;
position: relative;
}
.blue{
height: 100px;
width:100px;
background-color:blue;
position: relative;
}
.yellow{
height: 100px;
width:100px;
background-color:yellow;
position: relative;
}