How to set text alignment for OSweb
I'm currently building an online experiment using OSweb extension.
I define the text in the inline script with:
var text_1 = "This is text_1";
vars.text = text_1;
And in the textline element in the sketchpad:
I've also tried to use the HTML code to set alignment, both in the script (as var text_1 = "<p style=text-align:center;>This is text_1</p>;") and in the textline element (as <p style=text-align:center;>[text]</p>), but it doens't make a difference.
Would any of you have an idea how to achieve center alignment for text set in JS inline script?