Вы должны добавить ссылку перед квадратом и закрыть ее после, поэтому, когда кто-то нажимает на квадрат, он будет go к этой ссылке <a href="link.html">square css</a>
Проверьте эти коды
.flex-container
{
padding: 0;
margin: 0;
list-style: none;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row;
transition: opacity .2s ease-in-out;
flex-wrap: nowrap
}
.flex-item
{
text-align: center;
text-decoration: none;
color: #ffffff;
font-family: verdana;
width: 100%;
display: flex;
flex-shrink: 1;
justify-content: center;
align-items: center;
font-size: calc(8px + (26 - 18) * ((100vw - 300px) / (1600 - 300)));
z-index: 10;
flex-wrap: nowrap
}
.flex-item:before
{
content: '';
float: left;
padding-top: 100%;
}
.red-box
{
background: #fd6f71;
transition: opacity .2s ease-in-out;
opacity: 1;
}
<a href="yoururl.html">
<div class="flex-container">
<div class="red-box flex-item">
<div class="lh-icon"><img src="https://i.imgur.com/IyLYxCc.png"></div>
Placeholder
</div>
</div>
<div></a>
Дайте мне знать, если эта работа для вас:)