Can not make header sticky in Salesforce LWC - Data table

Viewed 20

I am trying to make my header sticky with overriding css with "Top:0" it seems to be over written by something else. I did try !Important but nothing seems to help.

1 Answers

slds-table--header-fixed_container : add this class on div by specifying the height for div

slds-table--header-fixed : add this class to table

slds-cell-fixed: add this class to tag.

Related