https://i.sstatic.net/DdJ5oRz4.png
I am attempting to design a square with a triangle resting on top. While I have made some progress, the code below is the closest I could get:
.square {
width: 20px;
height: 20px;
background: #FF0000;
outline: 1px solid #000;
outline-offset: 4px;
}
.arrow::before {
content: '';
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #000;
}
<div class='square arrow'></div>
Does anyone have suggestions on how to address this issue?