Example:
body {
font-size: 62.5% /* 1em = 10px */
}
The stuff inside the /* */
marks are CSS comments. This allows you to enter notes into CSS that will not be interpreted. In this case, this comment lets someone reading the CSS file know that that particular line of CSS was intended to allow for using ems to set font size later in the CSS in a more intuitive base 10 way.
- Tech Tricks answered 10 months ago
- You must login to post comments
Your Answer
Please login first to submit.