Reply To: Changing style of before and after text in scale

PennController for IBEX Forums Support Changing style of before and after text in scale Reply To: Changing style of before and after text in scale

#7657
Jeremy
Keymaster

Hi Özge,

You can use the same css commands on your Text elements:

newScale(7)
    .radio()
    .labelsPosition("bottom") 
    .before( newText("left", row.answer1).css("font-size","24px").css("font-family", "Helvetica, sans-serif") )
    .after( newText("right", row.answer2).css("font-size","24px").css("font-family", "Helvetica, sans-serif") )
    .css("font-size","24px")
    .css("font-family", "Helvetica, sans-serif")
    .log()
    .print()
    .wait()

Jeremy