I am having trouble in changing font sizes for lists in SP on-premise.

I have some custom css where I have changed font sizes for most areas of our sites - I am stuck with adjusting the size of fonts for lists.

I know I am looking to adjust the ms-fontSize in the additionalRowClass but I don't know where to apply it. Any help appreciated.

It is a modern communication site.


2 Answers 2


What type of template is that , either Classic site or Modern site? If it is Classic site you can add it into your master page else If it is modern site you need to create Application Extension customizer(SPFx) and add that app to your site collection

  • It's a modern site.
    – garvon-77
    Aug 26, 2020 at 22:40

You will need to apply custom code via the SharePoint Framework (SPFx) on modern pages in SharePoint Server 2019.

See the reference here for a tutorial: Inject Custom CSS on SharePoint Modern Pages using SPFx Extensions.

Also see the link here for what customization is supported for the time being: Customizing "modern" site pages.

Please note that customizing master pages for modern experience is not supported, so you will not be able to apply the CSS code once and for all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.