Specific new messages

Leveraging CSS

Cascading Style Sheets [CSS] are a powerful way to control the appearance of elements on a web page. The Web version of INScore provides a specific class message to use CSS in parallel to the standard mechanisms. This message is supported by all the INScore objects.

classMsg
  • 1: without argument, remove all class settings
  • 2: set the CSS classes of an object

Note: If a class message has not the expected effect, it's likely because the CSS properties of the target object are set by the standard INScore mechanisms (like color, border, font-size, etc.). As the own attributes of an object have precedence over the class of the object, the properties of the class are then ignored. You can force the properties of the class by adding the CSS rule !important which will override all previous styling rules for that specific property.