I am trying to change the paragraph font-size using handlebars
<p style="font-size:{{fs}}"> Paragraph</p>
where fs='x-small'
however this is not working. What should I change in my code to make it working? Thanks
x-small
is not a valid value for the font-size
CSS property. Instead, add set it as a class on the <p>
element.
<p class="{{fs}}"></p>