1 Reply Latest reply on Jun 16, 2015 1:29 PM by seano2o7

    Apply css to text

    rtania6

      I haved looked at some posts about applying css and I came up with the following.

      Would this be the right way to apply css to my textbox.

       

      sym.$("headline1Txt").html("<p id='headlineText'></p>");

      sym.$("headline1Txt").css(" -webkit-font-smoothing","antialiased","font-family","'Varela Round', Helvetica, sans-serif !important");

        • 1. Re: Apply css to text
          seano2o7 Level 3

          No, You can do it on a one line so to make the text red I would get the element name from the elements on the side panel and simply do

           

          sym.$("text").css("color", "red");

           

          or sym.$("text").css("font-size", "24px"); and so on

           

          add to compositonReady or a click or whatever.