Scrollable table header fixed in bootstrap
How do I make an scrollable table header fixed in bootstrap?
What is a scrollable table header fixed in bootstrap? How do you make a scrollable table header fixed in bootstrap? This script and codes were developed by Sreekanth Are on 21 November 2022, Monday.
Scrollable table header fixed in bootstrap - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scrollable table header fixed in bootstrap</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container table-responsive">
<table class="table table-striped header-fixed"> <thead> <tr> <th>Make</th> <th>Model</th> <th>Color</th> <th>Year</th> </tr> </thead> <tbody> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> <tr> <td class="filterable-cell">Ford</td> <td class="filterable-cell">Escort</td> <td class="filterable-cell">Blue</td> <td class="filterable-cell">2000</td> </tr> </tbody>
</table>
</div>
</body>
</html>
Scrollable table header fixed in bootstrap - Script Codes CSS Codes
.header-fixed { width: 100%
}
.header-fixed > thead,
.header-fixed > tbody,
.header-fixed > thead > tr,
.header-fixed > tbody > tr,
.header-fixed > thead > tr > th,
.header-fixed > tbody > tr > td { display: block;
}
.header-fixed > tbody > tr:after,
.header-fixed > thead > tr:after { content: ' '; display: block; visibility: hidden; clear: both;
}
.header-fixed > tbody { overflow-y: auto; height: 400px;
}
.header-fixed > tbody > tr > td,
.header-fixed > thead > tr > th { width: 25%; float: left;
}
Developer | Sreekanth Are |
Username | srees |
Uploaded | November 21, 2022 |
Rating | 3 |
Size | 1,750 Kb |
Views | 40,480 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Bootstrap Tables - Responsive | 1,904 Kb |
KU | 2,269 Kb |
Bootstrap Datepicker | 2,615 Kb |
OnClick change text | 2,033 Kb |
Add or Edit modal UI | 2,683 Kb |
Gradient shadow under the circle | 2,353 Kb |
Step Wizard | 2,610 Kb |
Step Wizard - Breadcrumbs | 2,840 Kb |
INS - Template | 2,574 Kb |
We-Sign-Up | 3,053 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
P1 | Vivi_Lai | 1,533 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
Multicolumns 2 | Raphaelgoetter | 1,857 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 Kb |
Day 1 - Portfolio | Chpecson | 3,532 Kb |
Loading animation with css | Icebob | 2,947 Kb |
Nested flexbox layout for library catalog | Boycetrus | 3,271 Kb |
Lightrays v2 | Sinthetyc | 2,903 Kb |
HEXAGON | Aurumlux | 1,684 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!