Based on my knowledge of HTML and CSS, if you have two divs with a width and height set to 100% and place them within the same containing div, only one div will be visible because they are identical in size and positioned on top of each other.
EDIT: My apologies, I was mistaken in my initial response as it pertains to inline elements and z-index. Here is the corrected code that should help achieve what you are looking for:
<html>
<head>
<title>Test</title>
<style>
#wrapper {
width: 498px;
height: 498px;
border: 2px solid #000000;
}
#box1 {
width: 100%;
height: 100%;
background-color: rgba(255, 0, 0, 0.5);
}
#box2 {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 255, 0.5);
}
</style>
</head>
<body>
<div id="wrapper">
<div id="box1"></div>
<div id="box2"></div>
</div>
</body>
I hope this solution meets your needs!
EDIT: Feel free to adjust the height of the container div to achieve further customization. Let your creativity guide you in creating the design you envision!