All comments begin with a forward slash and asterisk (/*), and end with the
asterisk followed by the forward slash (*/). This is a very simple and easy to remember method
that you may prefer to use in more complicated or important styles.
Example:
Another method preferred by many designers further highlights the rule by adding a dashed line
with the comment a great way of carving up the style sheet and making it more visually
manageable.
Example:
asterisk followed by the forward slash (*/). This is a very simple and easy to remember method
that you may prefer to use in more complicated or important styles.
Example:
/* Default styling for paragraphs */ p { color: #F00; font-size: 12px; } /* Make all top-level headings gray and 16px high */ h1 { color: #333; font-size: 16px; }
Another method preferred by many designers further highlights the rule by adding a dashed line
with the comment a great way of carving up the style sheet and making it more visually
manageable.
Example:
/* Default styling for paragraphs -------------------------------------------------------- */ p { color: #F00; font-size: 12px; }
No comments:
Post a Comment