<!DOCTYPE html>
<html lang="en">
<head>
<title>Title</title>
<style>
.red {
height: 200px;
background-color: red;
}
.green {
height: 300px;
background-color: green;
width: 200px;
}
.yellow {
height: 400px;
background-color: yellow;
}
</style>
</head>
<body>
<div class="red">
<div class="green"></div>
</div>
<div class="yellow"></div>
</body>
<script>
</script>
</html>
As the code show above, the height of the green div is 300px. However, it does not show fully because it is covered by the yellow div.
So I want to ask how to show the green div fully so that it can show like below.