I'm looking to create an HTML shape with cutoff corners and a border around it.
Currently, I can create cutoff shapes without borders using the following code:
HTML:
<div class="cut-off"></div>
CSS:
.cut-off{
position:relative;
top:400px;
left:400px;
height:155px;
width:200px;
background:red;
}
.cut-off:after{
position:absolute;
bottom:0px; right:-20px;
content:".";
text-indent:-999px; overflow:hidden;
display:block;
width:0px; height:0px;
border-top: 20px solid green;
border-right: 20px solid transparent;
}
.cut-off:before{
position:absolute;
top:0; right:-20px;
content:"#";
text-indent:-999px; overflow:hidden;
display:block;
background:blue;
width:20px; height:135px;
}
Now, I want to add a border that goes around the shape. How can this be achieved?
The desired shape should look something like this:
(Image of shape)
Filled with a color.