My webpage features an HTML table with a table navigation bar that allows users to add items or inventory. However, when the "add item" button is clicked, a form appears below the table instead of on top of it. I want the form to display itself right on top of the table without displacing it. I am open to suggestions and would like to use JavaScript for this task. Here's my code:
HTML Code:
<!DOCTYPE html>
...
</html>
CSS Code:
html, body {
height: 100vh;
}
...