5 Replies Latest reply on Dec 17, 2014 4:28 AM by justincode

    Assigning CSS rules to multiple Symbols. [v2014.1.1]

    justincode Level 1

      A silly question with a logical answer i hope.

       

      sym.$("symbolOne","symbolTwo").css({
          "position"     : "absolute",
          "white-space"  : "nowrap",
          "overflow"     : "hidden",
          "display"      : "inline",
          "line-height"  : "42px"
      });
      
      
      

      I want to assign css rules to multiple symbols within my Edge Composition, without having to re-write the above for each symbol.

       

      any ideas would be great...

       

      I know i could assign the symbols like below and use an external style sheet, but i want to do this within edge only.

       

      sym.$("symbolOne").addClass("myCss");
      sym.$("symbolTwo").addClass("myCss");
      
      

       

      many thanks..