JSFiddle - React, Tailwind, and code Playground

by ryanbrill

HTML

<div><span>test</span></div>

CSS

div {
    margin: 50px;
    height: 100px;
    width: 50px;
    overflow: hidden;
    position: relative;
}
span {
    position: absolute;
    left: 20px;
    display: block;
    height: 100px;
    width: 100px;
    background: #ccc;
    -moz-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-border-radius: 10px;
    background: -moz-linear-gradient(135deg,  #ff0000 0%, #fff 50%, #000 51%, #ff0000 100%);
    background: -webkit-gradient(linear, left top, right bottom,  color-stop(0%,#1E5799), color-stop(51%,#04160A),  color-stop(100%,#7db9e8));
}