aboutsummaryrefslogtreecommitdiff
path: root/build/posts/Please_Make_Your_Table_Headings_Sticky
diff options
context:
space:
mode:
Diffstat (limited to 'build/posts/Please_Make_Your_Table_Headings_Sticky')
-rw-r--r--build/posts/Please_Make_Your_Table_Headings_Sticky/index.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html b/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html
index 6f37f67..3939d59 100644
--- a/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html
+++ b/build/posts/Please_Make_Your_Table_Headings_Sticky/index.html
@@ -19,20 +19,18 @@
<h1 id="please-make-your-table-headings-sticky">Please Make Your Table Headings Sticky</h1>
<p>2024-02-23</p>
<p>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&#8230;</p>
-<p>Your browser does not support the video tag.
-</p>
+<p><a href="/public/videos/not-fixed-header-tables.mp4">Click here to see standard table headers video</a></p>
<p>Look at that table header disappear! Now, if I scroll all the way down to item #300 (for example) will I remember what each column&#8217;s data is associated with? If this is my first time looking at this table - probably not. Luckily we can fix this (no pun intended!) with a tiny amount of CSS.</p>
<h2 id="sticky-header">Sticky Header</h2>
<p>Check it out:</p>
-<p>Your browser does not support the video tag.
-</p>
+<p><a href="/public/videos/fixed-header-tables.mp4">Click here to see &#8220;fixed&#8221; table headers video</a></p>
<p>Pretty awesome, right? It might look like magic but it&#8217;s actually very easy to implement. You only need to add 2 CSS properties on your <code>thead</code>:</p>
<pre><code>position: sticky;
top: 0;
</code></pre>
<p>That&#8217;s it! Best of all, <code>sticky</code> has <a href="https://caniuse.com/?search=sticky">~96% global support</a> which means this isn&#8217;t some &#8220;bleeding-edge&#8221; property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!</p>
<p>You can view a live demo of this table on the <a href="https://codepen.io/bradleytaunt/pen/bGZyJBj">CodePen example pen</a>.</p>
-<p>If you found this interesting, feel free to check out my other table-focused post: <a href="https://btxx.org/posts/tables/">Making Tables Responsive With Minimal CSS</a></p>
+<p>If you found this interesting, feel free to check out my other table-focused post: <a href="/posts/tables/">Making Tables Responsive With Minimal CSS</a></p>
<footer role="contentinfo">
<h2>Menu Navigation</h2>
<ul id="menu">