I want to create a rounded border, and put some text in the middle of the top border like this:
I tried altering the solution posted on this previous question, but I couldn't get the bottom border of the text to match up with the border of the div below (the snippet below is using tailwindcss, but you get the idea):
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"/>
<div class="pt-3">
<h2 class="w-full text-center border-t rounded-t-lg border-gray-600" style="line-height: 0.1">
<span class="bg-white px-3 text-sm font-medium">SOME TEXT</span>
</h2>
<div class="px-5 pb-5 pt-4 border-b border-r border-l border-gray-600 rounded-md">
</div>
</div>
How can I accomplish this?