JSFiddle - React, Tailwind, and code Playground
by Andrew Dunai
HTML
<h1>Bottom corner test</h1>
Content
CSS
body {
border: 1px dashed #17F;
font-family: sans-serif;
position: relative;
color: #17F;
}
body::before {
content: '<body>';
position: absolute;
bottom: 0;
right: 0;
font-size: 0.7rem;
font-weight: bold;
background: #17F;
color: #FFF;
}
html, body {
min-height: 70%;
height: 70%;
margin: 0;
padding: 0;
}
body::after {
content: '';
position: absolute;
bottom: -20px;
left: 50%;
margin-left: -20px;
width: 0;
height: 0;
border-right: 40px solid #F17;
border-top: 40px solid transparent;
transform: rotate(-135deg);
}