From 07e4a2dafe248280b5610f8c7d09b0f30b530f54 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Mon, 10 Jun 2024 09:41:25 -0400 Subject: Initial modifications to rebuilt only changed files based on mod date, performance updates --- .../index.html | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 build/Please_Make_Your_Table_Headings_Sticky/index.html (limited to 'build/Please_Make_Your_Table_Headings_Sticky') diff --git a/build/Please_Make_Your_Table_Headings_Sticky/index.html b/build/Please_Make_Your_Table_Headings_Sticky/index.html deleted file mode 100644 index 254c06f..0000000 --- a/build/Please_Make_Your_Table_Headings_Sticky/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - Please Make Your Table Headings Sticky - - - - - - - -
-

Please Make Your Table Headings Sticky

-

2024-02-23

-

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…

-

Link to video example of standard table header

-

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’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.

- -

Check it out:

-

Link to video example of fixed table header

-

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:

-
position: sticky;
-top: 0;
-
-

That’s it! Best of all, sticky has ~96% global support which means this isn’t some “bleeding-edge” property and can safely support a ton of browsers. Not to mention the improved experience for your end-users!

-

You can view a live demo of this table on the CodePen example pen.

-

If you found this interesting, feel free to check out my other table-focused post: Making Tables Responsive With Minimal CSS

- \ No newline at end of file -- cgit v1.2.3-54-g00ecf