Click for the problem's illustration
How should I implement this, given the fact that the background is not solid? I was trying different solutions, but none of them fully fit
Click for the problem's illustration
How should I implement this, given the fact that the background is not solid? I was trying different solutions, but none of them fully fit
Start like this,
<div id="box">
<div id="rectangle"></div>
</div>
CSS
#box {
height: 100px;
width: 400px;
overflow: hidden;
background-color: black;
}
#rectangle {
width: 0;
height: 0;
border-top: 100px solid transparent;
border-right: 300px solid white;
}