Increase font size in javascript code

107 views
Skip to first unread message

VL

unread,
Jul 15, 2016, 2:15:49 PM7/15/16
to jsPsych
Hi--is there a quick way to increase font size in the javascript code without messing with the css file?

Josh de Leeuw

unread,
Jul 15, 2016, 3:01:34 PM7/15/16
to VL, jsPsych
You have to modify the CSS rules to change font size.

However, you don't have to change the CSS file. 

You can adjust CSS in head section of the html document:

<head>
<style>
p { font-size: 24px; }
</style>
</head>

Or at the element level:

<p style="font-size:24px;">This paragraph will display at 24px</p>

On Fri, Jul 15, 2016 at 2:15 PM VL <lawlor.v...@gmail.com> wrote:
Hi--is there a quick way to increase font size in the javascript code without messing with the css file?

--
You received this message because you are subscribed to the Google Groups "jsPsych" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jspsych+u...@googlegroups.com.
To post to this group, send email to jsp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jspsych/691ceb1c-22a4-4e78-abf1-ddc49719b537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages