JSFiddle - React, Tailwind, and code Playground

by blineberry

HTML

<div class="box">
    <div class="box-header">Header</div>
</div>

CSS

.box {
    width: 200px;
    height: 100px;
    position: relative;
    
    border: 5px solid gray;
    border-width: 5px 5px 5px 24px;
    
    background: lightgray;
    
    font-family: sans-serif;
}
.box-header {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 100px;
    
    color: white;
    text-align: center;
    line-height: 1.5;
    text-transform: lowercase;
    
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);

}