Maybe I wrote wrong?! I need a table with a fixed height (250px), scrollable and fixed header? Help?
Hi,
thanks for your post, and sorry for the trouble.
For this, it should be sufficient to use an existing Shortcode parameter:
[table id=123 datatables_scrolly=250 /]
Regards,
Tobias
Thanks for the quick reply! But I doesn’t work. Maybe something I need to include? Insert code – [table id=1 datatables_scrolly=250 datatables_fixedheader=top/]
Thank you for Your work! I You mail [email protected] made a donation!
But the problem is not yet solved!
-
This reply was modified 9 years, 7 months ago by
LeopardRUS.
Hi,
thanks for the donation, I really appreciate it!
You should only need the datatables_scrolly parameter here, it will add its own fixed header (to the top of the table, not to the page).
Does that work? If not, can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!
Regards,
Tobias
Hi,
please remove the datatables_fixedheader=top Shortcode parameter and add datatables_scrolly=250 instead.
Regards,
Tobias
Replaced! But still something wrong!
Hi,
ah, my bad, we need the px unit as well. The correct Shortcode parameter should be
datatables_scrolly=250px
Regards,
Tobias
Thanks for the help! It is strange that I miss it!
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!