diff options
author | Bradley Taunt <bt@btxx.org> | 2024-06-10 10:12:28 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-06-10 10:12:28 -0400 |
commit | 14074019d62d98885c4c764401a9e7e1fd129f79 (patch) | |
tree | c688b288de21b5c475fa2e512be8a8418b9ba8e6 /posts/Please_Make_Your_Table_Headings_Sticky.md | |
parent | 80eefc47a0982703e48eb9b1cf4e5180f945ef10 (diff) |
Set proper timestamps for header and footer HTML templates, update some post contents
Diffstat (limited to 'posts/Please_Make_Your_Table_Headings_Sticky.md')
-rw-r--r-- | posts/Please_Make_Your_Table_Headings_Sticky.md | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/posts/Please_Make_Your_Table_Headings_Sticky.md b/posts/Please_Make_Your_Table_Headings_Sticky.md index ef2e810..249066a 100644 --- a/posts/Please_Make_Your_Table_Headings_Sticky.md +++ b/posts/Please_Make_Your_Table_Headings_Sticky.md @@ -4,12 +4,7 @@ I often stumble upon large data sets or table layouts across the web. When these tables contain hundreds of rows of content, things become problematic once you start to scroll... - -<video width="100%" controls> -<source src="https://btxx.org/posts/Please_Make_Your_Table_Headings_Sticky/not-fixed-header-tables.mp4" type="video/mp4"> -Your browser does not support the video tag. -</video> - +[Click here to see standard table headers video](/public/videos/not-fixed-header-tables.mp4) <h2>This should be a header</h2> @@ -19,12 +14,7 @@ Look at that table header disappear! Now, if I scroll all the way down to item # Check it out: - -<video width="100%" controls> -<source src="https://btxx.org/ikiwiki/git/fixed-header-tables.mp4" type="video/mp4"> -Your browser does not support the video tag. -</video> - +[Click here to see "fixed" table headers video](/public/videos/fixed-header-tables.mp4) Pretty awesome, right? It might look like magic but it's actually very easy to implement. You only need to add 2 CSS properties on your `thead`: @@ -35,4 +25,4 @@ That's it! Best of all, `sticky` has [~96% global support](https://caniuse.com/? You can view a live demo of this table on the [CodePen example pen](https://codepen.io/bradleytaunt/pen/bGZyJBj). -If you found this interesting, feel free to check out my other table-focused post: [Making Tables Responsive With Minimal CSS](https://btxx.org/posts/tables/) +If you found this interesting, feel free to check out my other table-focused post: [Making Tables Responsive With Minimal CSS](/posts/tables/) |