I'm trying to get the trapezoid shape resize when I resize browser's window. I was trying to do that by using box-resize
but it still didn't work. Is it possible to do that with trapezoid defined/created by using border
hack? What other way can I make trapezoid with the ability to resize when browser window is resized?
<body style="position:relative;height:500px;">
<div id="personal" style="position:relative;
background-color: red;
width:100%;
height:100%;">
<div id="floor" style="position:absolute; margin-top:10px;
border-bottom: 300px solid black;
border-left: 565px solid transparent;
border-right: 570px solid transparent;
height: 10%;
width: 100%;">
</div>
</div>
</body>