How do I change the font of just the check box field text? Is this CSS?
Question
Question
How do I change the Font on just one specific field?
asked on July 6, 2016
•
Show version history
0
0
Replies
replied on July 6, 2016
Crystal,
You could do it with one line of javascript like this if you wanted bold text:
$("#q7 label").css('font-weight', 'bold');
Just change q7 to whatever the field number is for your checkboxes.
0
0
replied on July 15, 2016
Thank you! Instead of Bold do I just put in what Font selection I want?
0
0
replied on July 15, 2016
Normal, Italic, Bold all work. If you want to change the font type or size in the label you can use the same command, instead of font-weight put in something like this:
$("#q1 label").css('font-family', 'georgia');
$("#q1 label").css('font-size', '150px');
Or if you really want it to stand out, you can make the checks themselves a different color with a CSS statement, like this:
input[type=checkbox]:checked + label {color: red};
3
0
You are not allowed to follow up in this post.