Thanks for posting your question in the Microsoft Q&A forum.
<table style="border:1px solid
black">
<tr>
<td style="width:300px;height:200px;">
<div id="classesContainer">
<h2 class="custom-title">Classes</h2>
<div id="classesList" class="scrollable-list" style="padding-top:5px; margin-top:10px;width:300px;height:200px;">
</div>
</div>
</td>
</tr>
</table>
<style>
.scrollable-list {
overflow-y: auto;
max-height: 200px;
width: 180px;
}
.classesContainer {
border: 1px solid #ccc;
padding: 10px;
position: relative;
}
.custom-title {
background-color: #fff;
padding: 0 10px;
position: absolute;
top: -22px;
}
</style>
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful