Note the absolute positioning and possibly z-index (although if this is your only absolutely positioned content, you wonβt need it). While there are other ways for things to overlap, this is probably most relevant to you.
A very simple example:
CSS
#target { position: absolute; left: 50px; top: 100px; border: 2px solid black; background-color: #ddd; }
HTML:
<p>Something before the table</p> <div id="target">I'm on top of the table</div> <table> <tbody> <tr> <td>Text in the table</td> <td>Text in the table</td> </tr> <tr> <td>Text in the table</td> <td>Text in the table</td> </tr> <tr> <td>Text in the table</td> <td>Text in the table</td> </tr> <tr> <td>Text in the table</td> <td>Text in the table</td> </tr> </tbody> </table>
Live copy | a source
Tj crowder
source share