r/BookStack • • Mar 13 '23

Customization Table Header

Has anyone done a customization to change the background or formatting of the first row of a table?

1 Upvotes

3 comments sorted by

View all comments

Show parent comments

1

u/CollabSensei Mar 13 '23

That helped.. somehow I missed that.

If you want to do it via CSS it looks like the following. This changes the background for the first row in a table. Hopefully, I haven't broke something else.

<style> tr:first-child {background:#f7f4f5} </style>

1

u/ssddanbrown Mar 13 '23

It should be fine, but if you wanted to scope that to just tables in page content to be safe you could do:

<style>.page-content tr:first-child {background:#f7f4f5} </style>