JSFiddle - React, Tailwind, and code Playground
by John Doe
HTML
<div class="box">
<dl>
<dt>cĂmsor</dt>
<dd>
<ul>
<li>first word</li>
<li>second word</li>
<li>third word</li>
<li>fourth word</li>
</ul>
</dd>
</dl>
</div>
CSS
.box{
width: 50%;
margin:0 auto;
border: 1px solid #c0c0c0;
background-color: red;
text-align: center;
}
.box dl{
margin: 0;
}
.box dl dt,.box dl dd{
padding: 20px;
}
.box dl dt{
margin-bottom: 0px;
font-size: 26px;
text-transform: uppercase;
background-color: #ffffff;
position: relative;
padding-bottom: 10px;
}
.box dl dt:after{
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 1px;
width: 0;
position: absolute;
pointer-events: none;
border-color: transparent;
border-top-color: #fff;
border-width: 158px;
margin-left: -50%;
border-top-width: 20px;
border-bottom-width: 0px;
}
dl ul{
margin: 0;
padding: 0;
}
.box dl dd{
margin: 0;
padding-top: 30px;
}
dl ul li{
list-style-type: none;
}