]> git.ardis.lu - sheets-db/commitdiff
Make table header sticky
authorArdis Lu <ardisglu@gmail.com>
Sat, 24 Feb 2024 06:30:55 +0000 (22:30 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 24 Feb 2024 06:30:55 +0000 (22:30 -0800)
demo/index.html

index 8383a5f98d74530bb6e56987347830b2d15c1c24..846ab2cd5df4eacba64c56b2d53dd8f284e1eb5b 100644 (file)
       border-collapse: collapse;
     }
 
+    thead {
+      position: sticky;
+      top: 0;
+    }
+
     th,
     td {
       padding: 0.5rem;
This page took 0.039793 seconds and 4 git commands to generate.