I'm trying to create a table header that displays a help text (div) when clicked on. However, the help div is causing the table header to be larger than the other headers.
Below is the code snippet:
#help_box {
border-radius: 20px;
background: rgba(0, 0, 0, 0.77);
padding: 10px;
color: white;
font-size: 12px;
}
<body>
<!--Content of the site-->
<div id="contentv2">
<div id="highlight">
<table>
<tbody>
<tr>
<th valign="center" style="min-width: 130px;">Stock</th>
<th valign="center" style="min-width: 70px;">Price</th>
<th valign="center" style="min-width: 70px;">Variation<div id="help_box" align="justify">The period of oscillation is a random text. To make sure it's the same size as last week (until Sunday 23:59).</div></th>
</tr>
</tbody>
<tbody>
<tr><td style="font-size: 16.66px;">First row</td><td style="font-size: 16.66px;">$75.50</td><td align="right" style="font-size: 16.66px;color:red">-0.66%</td></tr>
<tr><td style="font-size: 16.66px;">Second row</td><td style="font-size: 16.66px;">$66.50</td><td align="right" style="font-size: 16.66px;color:red">-0.66%</td></tr>
<tr><td style="font-size: 16.66px;">Third row</td><td style="font-size: 16.66px;">$56.50</td><td align="right" style="font-size: 16.66px;color:red">-0.66%</td></tr>
</tbody>
</table>
</div>
</div>
What I want is for the help box to appear right below the header and overlap the rows below without affecting the size of the table header.