Currently I'm learning html and css, this question might be unclear!
The problem is that I want to add text (advertisement) at the top of the child border line but it doesn't meet the requirement see the image below the code lines and please guide me the margin property that might be meaningless for you in the css code.
#parentBox {
border: 2px solid red;
height: 180px;
width: auto;
}
#childBox {
background: #f2f2f2;
height: 70%;
border: 2px solid #f2f2f2;
margin: 20px 70px 20px 340px;
}
<div id="parentBox">
<div id="childBox">advertisement</div>
</div>`