I am attempting to create a DIV with angled corners, as depicted in the image below:
https://i.sstatic.net/1a9LY.png
So far, I have successfully implemented the top right corner using a tutorial. Here is the code snippet that accomplishes this:
.lifeatblock {
background-color: #435973 !important;
position:relative;
}
.lifeatblock:after {
content: '';
border-style: solid;
border-width: 0 50px 50px 0;
border-color: transparent #fff transparent transparent;
width: 0;
height: 0;
right: 0;
top: 0;
position: absolute;
}
However, I have encountered difficulties in constructing the bottom left corner using :before. If anyone has insights on how to achieve this, I would greatly appreciate it. Thank you!