how to calculate content width html w3schools code example Example: css calc height div { width: calc(100% - 100px); }