commenting in css code example

Example 1: comment out css inline

/* this is some commented out css
.my-field{
   font-size:10px;
   border:1px solid red;
}
*/

Example 2: css comment

/* This is a CSS comment! */
/* Remember that you have to add the end bit on comments or all your
code will turn to comments! Thease comments can go over several lines! */

Example 3: css add comment

/* This is a comment for heading styles */
h1 {
  color: red;
}

Example 4: comment css

// Do some stuff {}
.foo { animation: bar 1s infinite; }
/* Success! */

Example 5: comments in css

/*comment here*/

Example 6: css comment

/* The only requirements for comments are 
slash star at the start and star slash at the end */

/*/ But i prefer writing comments with an extra slash cus it looks better /*/

Tags:

Css Example