Property
noun
say it: “PROP-er-tee” /ˈprɑpərti/
The part of a CSS declaration that names what you want to change, such as color, font-size or margin. It comes before the colon.
What is a property in CSS?
A property is the thing you want to change, like color, width or margin.
.title {
color: purple; /* color is the property */
text-align: center; /* text-align is the property */
}
In a sentence
- “The property I needed to make the playlist titles bigger was font-size.”
- “I typed the property name as colr, and the browser skipped that line without any error.”
- “I changed the property from color to background-color, and the whole button turned orange instead of only its text.”
Level: Novice · More CSS terms at this level
Updated