Mixing units in a single CSS expression.
- Category: CSS Advance — part of the CSS Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "The calc() Function" in one sentence, then back it up with a tiny example
/* The calc() Function */
.example {
/* see the property reference on MDN for full syntax */
}Tip
Quick recall: "The calc() Function" — mixing units in a single CSS expression.