Within customfile, why can you not include style anymore?
if i add to PHPMaker custom CSS area then it works
Within customfile, why can you not include style anymore?
if i add to PHPMaker custom CSS area then it works
You may post your code for discussion.
just a simple
<style>
.test-card{
background:#0d6efd;
color:#fff;
padding:20px;
border-radius:10px;
font-size:20px;
font-weight:700;
}
</style>
<div class="test-card">CSS TEST</div>
do not work if the css is within the file. ok if you add it within .style > user in the appliation
If you enable Use content security policy (CSP) in advanced setting, you need to include Nonce() function.
Example 1:
<style <?= Nonce() ?>>
.test-card {
background:#0d6efd;
color:#fff;
padding:20px;
border-radius:10px;
font-size:20px;
font-weight:700; }
</style>
Example 2:
<link rel="stylesheet" href="<?= BasePath() ?>css/mycustom.css" <?= Nonce() ?>>
See Nonce().