@@ -93,10 +93,13 @@ form.search {
9393 }
9494}
9595/*
96- When the following is used:
96+ Originally the the following is used in HTML :
9797 <div class="responsive-table"><table>...
98- The `position: sticky` code for headers and first column will
99- not work because of the overflow being defined.
98+ Now `position: sticky` is being used for headers and first column.
99+ When sticky position is used it will not work if "responsive-table" if used
100+ because because of the overflow being defined. The "responsive-table" code is
101+ being kept for reference in case this CSS is copied and used as a starting point
102+ for one of your apps and you prefer responsive tables.
100103
101104 [responsive-table] provides a nice visual layout because it allows the
102105 table to fully fit with-in the page. The user can easily swipe to view
@@ -139,7 +142,7 @@ table tbody tr.row-even { background-color: #f6f8fa; }
139142table tbody tr .highlight { background-color : yellow; }
140143
141144/* Table Sticky Header and First Column */
142- table { position : relative; }
145+ table { position : relative; margin : 20 px 0 ; }
143146th { position : sticky; top : -1px ; background-color : hsla (210 , 29% , 93% , 1 ); z-index : 2 ; }
144147table thead tr th : first-child { z-index : 3 ; left : 0 ; }
145148table tbody tr td : first-child { position : sticky; left : 0 ; z-index : 1 ; }
@@ -148,9 +151,8 @@ table tbody tr:nth-child(even) td:first-child { background-color: #f6f8fa; }
148151table tbody tr .highlight td : first-child {background-color : yellow; }
149152
150153/*
151- In Firefox the sticky cells function but do not look good so
152- sticky first column is turned off. For options to work-around
153- this issue see:
154+ In Firefox the sticky cells function but do not look good so the sticky
155+ first column is turned off. For options to work-around this issue see:
154156 https://stackoverflow.com/questions/57166162/table-headers-positionsticky-and-border-issue/57170489
155157*/
156158@-moz-document url-prefix() {
0 commit comments