<!-- Brand Box -->
<div class="home-col1-brand-box">
<div class="home-col1-brand-item">
<a href="#">
<img src="https://picsum.photos/200/200" width="100%" alt="D&D">
<div class="home-col1-brand-label"><span>Dungeons & Dragons Big Bad Name I </span></div>
</a>
</div>
</div>
<!-- Brand Box -->
<div class="home-col1-brand-box">
<div class="home-col1-brand-item">
<a href="#">
<img src="https://www.minisgallery.com/images/icons/dnd-new-icon.gif" width="100%" alt="D&D">
<div class="home-col1-brand-label"><span>Some text that may or may not span 2 lines </span></div>
</a>
</div>
</div>
<!-- Brand Box -->
<div class="home-col1-brand-box">
<div class="home-col1-brand-item">
<a href="#">
<img src="https://www.minisgallery.com/images/icons/dnd-new-icon.gif" width="100%" alt="D&D">
<div class="home-col1-brand-label"><span>Lorem Ipsum text </span></div>
</a>
</div>
</div>
.home-col1-brand-box {
display: flex;
flex-direction: column;
width: 180px;
margin: 15px;
}
.home-col1-brand-item a {
width: inherit;
height: 180px;
border: 4px solid #9c9c9c;
border-radius: 15px;
box-shadow: 0 0 7px 0px black inset;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
font-size: 14px;
color: #9c9c9c;
font-weight: 600;
font-family: Calibri;
text-decoration: none;
position: relative;
padding: 2px;
}
.home-col1-brand-item a:hover {
border-color: #620000;
background: #dfc7c7;
box-shadow: 0 0 10px 0px #620000 inset;
color: #620000;
}
.home-col1-brand-label {
left: 4px;
right: 4px;
text-align: center;
position: absolute;
bottom: -8px;
z-index: 2;
padding-right:3px;
}
.home-col1-brand-label span {
background: #fff;
padding:0 3px;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.