Value
noun
say it: “VAL-yoo” /ˈvælju/
What you set a CSS property to, written after the colon: a color, a size, a keyword and so on, such as red, 16px or bold.
What is a value in CSS?
A value is what you set a property to: a color, a size, a keyword and so on.
.alert {
color: red; /* red is the value */
padding: 12px; /* 12px is the value */
}
In a sentence
- “I changed the value from 12px to 18px, and the adoption page's text became much easier to read.”
Level: Novice · More CSS terms at this level
Updated