<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
padding: 0;
margin: 0;
background-color: #fff;
}
.contanir {
height: 300px;
width: 400px;
position: relative;
}
.red {
position: absolute;
background-color: #f00;
height: 30%;
width: 10%;
left: 0;
bottom: 0;
}
.gray {
background-color: #ddd;
position: absolute;
left: 50px;
bottom: 0;
height: 80%;
width: 10%;
}
.green {
position: absolute;
left: 100px;
bottom: 0;
background-color: #0fd;
height: 70%;
width: 10%;
}
</style>
</head>
<body>
<div class="contanir">
<div class="red"></div>
<div class="gray"></div>
<div class="green"></div>
</div>
</body>
</html>