3 Replies Latest reply on Dec 6, 2014 2:00 AM by justincode

    How can i add css styling to all elements within a symbol.

    justincode Level 1

      How can i add css styling to all elements within a symbol.

       

      For instance.

       

      If i have a symbol call "data" and within this i have 4 elements called 1,2,3,4 how do i add styling to all these elements without having to re-write code for each element.

       

      I know i can style a symbol called "data" by :

      sym.$("data").css("font-family", "baumans, sans-serif", "font-size", "15px");
      
      

      ...But this does not style the content of the elements 1,2,3 and 4

       

      If i were using standard CSS and HTML then all div's within a div called "data" would be styled the same.

       

      help "my friends of the code"