width: calc(50% - 10px) code example Example: css calc body { width: calc(100vw - 8px); height: calc(100vh - 8px); }