Like this article? We recommend
Styling the TextAreas
Because the point of all this is to manage two separate TextAreas, it seems reasonable that two fragments of CSS code should be provided to style these areas.
Add this to the code attached to the code layer:
// define styles... one for the screen and one for the print var screenStyles = new TextField.StyleSheet(); screenStyles.setStyle("html", { fontFamily: ’verdana,sans-serif’, fontSize: ’12px’, color: ’#cc0000’} ); var printStyles = new TextField.StyleSheet(); printStyles.setStyle("html", { fontFamily: ’verdana,sans-serif’, fontSize: ’9px’, color: ’#000000’} );