I created the following code. However, when I scroll down the table, the header disappears from view. I would like the header to always remain at the top, even when scrolling.
Despite searching Google multiple times and trying various solutions, I have not been able to resolve this issue successfully.
I would appreciate any assistance.
Here is my current code:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="htttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Striped Rows</h2>
<table class="table table-striped">
<div>
<thead>
... (Code continues)
Thank you for your help!