Is it possible to create a 3D multi-level pyramid using CSS and HTML5? I have explored some shape generator websites, but they are not compatible with IE and FF.
For example:
I also attempted to create a 2D multi-level pyramid, but it did not meet my requirements.
.container1>div:hover {
border-bottom: 25px lightblue solid !important;
}
#trapezoid11 {
border-bottom: 25px solid blue;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 0px;
margin: 0 auto;
}
#trapezoid12 {
border-bottom: 25px solid green;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 50px;
margin: 0 auto;
}
#trapezoid13 {
border-bottom: 25px solid red;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 100px;
margin: 0 auto;
}
#trapezoid14 {
border-bottom: 25px solid blue;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 150px;
margin: 0 auto;
}
#trapezoid15 {
border-bottom: 25px solid red;
border-left: 25px solid transparent;
border-right: 25px solid transparent;
height: 0;
width: 200px;
margin: 0 auto;
}
.container1 {
width: 90%;
margin: 0 auto;
}
<div class="container1 ">
<div id="trapezoid11"></div>
<div id="trapezoid12"></div>
<div id="trapezoid13"></div>
<div id="trapezoid14"></div>
<div id="trapezoid15"></div>
</div>
The desired final result can be viewed here: https://i.sstatic.net/fGjDz.png