I attempted to create a design similar to the Instagram "ask me a question" box, but I am encountering an issue where there is some extra border around the title when the two divs merge.
What am I doing incorrectly?
.info {
overflow: hidden;
border-radius: 10px;
background-color: white;
}
.info .description-title {
color: #f1ecff;
background-color: #333;
font-size: 15px;
padding: 12px;
user-select: none;
}
.info .description-text {
max-height: 100px;
overflow-y: auto;
text-align: justify;
font-size: 14px;
padding: 8px 12px;
}
<div class="info">
<h3 class="description-title">Description</h3>
<p class="description-text">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Officiis quo omnis, culpa modi explicabo eius delectus dolorem a inventore, adipisci aspernatur laudantium voluptatum corporis vitae enim qui? Eveniet cumque officiis molestiae tempora mollitia quia id minima earum facilis recusandae voluptatum voluptatibus optio similique dolore nobis, ab excepturi aliquam quasi animi quisquam porro velit quam veritatis? Natus modi aperiam adipisci maxime.</p>
</div>