How to include internal CSS

  • Apologies if this was already been asked before

    I'm trying to include a local css file that I have created under the assist directory but I'm unable to reference it in my report page.

    <link ref="stylesheet" href="../assets/style.css"> or <link ref="stylesheet" href="style.css"> did not help referencing the file locally.

    Any help is highly appreciated.

  • If you have added it to your assets area, all you should need to do is something like this.

    {#asset <nameInAssets> @encoding=utf8}

    For example:
    {#asset style.css @encoding=utf8}

    Put that at the top of the template file.

  • worked like a charm thanks very much for your help.

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.