how can i fixed a column on a table records?

how can i fixed a column on a table records?

  

I have a table records with 16 columns and a need that the first two column stay fixed. It is possibel?

Thanks


Yes, it is! You only need to use some javascript, like this: https://www.cssscript.com/demo/fix-table-header-column/

You could try to use position:sticky;

https://www.w3schools.com/howto/howto_css_sticky_element.asp

Take note that position sticky does not work on thead, tr or tbody and instead have to be aplied directly on the th and td, which you can easily do by applying the following css:

th, td {
position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0; /* in order for sticky to work you need to setup atleast 1 top, bottom, left or right */
}