1
HTML/CSSAdvanced#css#functions
calc() lets you mix units and perform arithmetic (+, -, *, /) directly in a CSS value, useful for responsive layouts that need a fixed offset combined with a percentage/viewport unit.
.sidebar { width: calc(100% - 250px); }
.hero { height: calc(100vh - 64px); } /* subtract fixed header height */