CSS Comments

 

You can insert comments in CSS to explain your code. Like HTML comments, CSS comments will be ignored by the browser. A CSS comment begins with "/*", and ends with "*/". Comments can appear before or within rule sets as well as across multiple lines. They can also be used to comment out entire rules or individual declarations. Here are some examples:

css - Before a rule
  1. /* ======== HEADER AREA ======== */
  2. header {
  3.    position: relative;
  4.    width: 100%;
  5.    height: 160px;
  6.    text-align: center;
  7. }
css - within a rule
  1. #nav ul li {
  2.    width: 200px; /* you can increase or decrease width of submenu */
  3.    float: left;
  4.    padding: 0;
  5.    margin: 0;
  6.    border-radius: 0; /* removes radius set previously */
  7.    font-size: 0.90em;
  8. }
css - multiple lines
  1. /* ==================================== */
  2. /* ==== CELL PHONE - PORTRAIT VIEW ==== */
  3. /* ==================================== */
  4. @media screen and (max-width: 320px) {
  5.    #wrapper {
  6.       width: 96%;
  7.       margin: 0 2%;
  8.    }
    ....
    }