Forum Discussion
SharePoint List Web Part- Freeze column headings when scrolling down
- Jun 25, 2022
Nic_ol there are several requests for this which you can vote for on the feedback portal, for example https://feedbackportal.microsoft.com/feedback/idea/59b771a3-dd1c-ec11-b6e7-0022481f8046. The script editor web part is not available in the modern experience and if your company is anything like mine you might not be able to use SPFx!

Rob
Los Gallardos
Intranet, SharePoint and Power Platform Manager (and classic 1967 Morris Traveller driver)
You can do that with a Script Editor Webpart if you have access to it. But you have more options to inject CSS with SPFx.
Something like this but you have to find the correct classes, maybe they changed
<STYLE>
.ms-viewheadertr {
display: block;
position: relative;
}
.ms-listviewtable tbody {
display: block;
overflow: auto;
height: 300px;
}
</STYLE>Hi Joao Livio,
Thank you for the info. Unfortunately I don't have access to either of your suggestions, but I appreciate your efforts.
Kind regards,
Nic