Unknown CSS Property
An unknown property error means the CSS property name doesn't exist in the specification. This is usually a typo (e.g., 'colr' instead of 'color'), a vendor-prefixed property used without the prefix, or a made-up property name.
Why It Matters
The browser ignores the entire declaration. Unlike invalid values, unknown properties are easier to catch because the property name itself is wrong. But they can hide behind vendor prefixes and preprocessor variables.
Common Causes
- Simple spelling mistakes like colr, font-weigth, or heigth that no longer match any real property.
- Using British spelling: background-colour and centre are not valid CSS keywords or properties.
- Inventing a plausible-sounding property such as text-size that does not exist in the spec.
Code Examples
div {
colr: red; /* typo */
font-weigth: bold; /* typo */
background-colour: #fff; /* British spelling */
text-size: 16px; /* not a property */
}div {
color: red;
font-weight: bold;
background-color: #fff;
font-size: 16px;
}How to Fix
- 1Double-check property names. Common typos: colr, font-weigth, backgroud, heigth, widht.
- 2background-colour is not valid CSS. Use background-color (American spelling).
- 3text-size doesn't exist. Use font-size for text sizing.
- 4If using vendor prefixes (-webkit-, -moz-), also include the standard property.
Frequently Asked Questions
What is the difference between an unknown property and an invalid value?
Will an unknown property break the rest of my rule?
Are custom properties treated as unknown?
Check Your CSS Now
Our CSS validator detects this error automatically and shows the exact line number.
Open CSS ValidatorCloudways · Managed Cloud Hosting
Fix this CSS error, then deploy on Cloudways managed cloud (AWS, GCP, DigitalOcean).
Free 3-day trial · 30% off 3 months + free site migration with code MIGRATE303
Related CSS Errors
Invalid CSS Property Value
Learn why an invalid CSS property value silently breaks your styling, and how to fix the common color, unit, keyword, and function mistakes quickly.
Missing Semicolon in CSS
A missing semicolon is the most common CSS error, and it quietly breaks two rules at once. Learn why it happens and how to find and fix it in seconds.
Duplicate CSS Property
Learn why a duplicate CSS property silently overrides your styles, when repeating one is a valid fallback, and how to catch accidental duplicates fast.