Skip to content

Instantly share code, notes, and snippets.

@iamrealfarhanbd
Created September 25, 2023 10:43
Show Gist options
  • Save iamrealfarhanbd/9bb4b966ab01159f93ef477e6b1cb854 to your computer and use it in GitHub Desktop.
Save iamrealfarhanbd/9bb4b966ab01159f93ef477e6b1cb854 to your computer and use it in GitHub Desktop.
Custom CSS code to make the left first columns of a Ninja Table sticky when scrolling to the right.
#footable_parent_NT_ID tbody tr td:nth-child(1), #footable_parent_NT_ID thead th:nth-child(1){
position: sticky;
position: -webkit-sticky;
left: 0;
z-index: 1;
background: #fafafb;
font-weight:bold;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment