Can I put comments within the CSS Codes?

  • Profile Image
    mgcaledonian13
    Asked on March 04, 2017 at 06:44 AM

    Is there any way to add a note within CSS.

    See Highlighted text, Doing this upsets the CSS, any solution?

  • Profile Image
    Jim_R
    Answered on March 04, 2017 at 03:54 PM

    Yes, there's a way to add comments to your CSS. Just enclose them with /* */:

    e.g.

    /* Comments here */

    #input_1 {

      width: 100px; /* You can place them here too */

    }

    https://css-tricks.com/snippets/css/comments-in-css/

    In case you need more help, just let us know 😊