I am trying to make a top-left triangle (red) with a (black) border. I want it to have the black border all the way around. This attempt angles a square to fake it (pushed outside the screen to mimmick a triangle)
I want the border all the way around, in which my attempt won't work
#corner {
  height: 75px;
  width: 100px;
  position: absolute;
  left: -3em; top: -2em;
  z-index: 999;
  transform: rotateZ(-45deg);
  background-color: red;
  border-bottom: 5px solid #0c0c0c;
}<div id="corner"></div> 
     
     
    