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