Question · HTML and CSS course · Module 9: Modern CSS
Spaces in calc()
Why is calc(100%-50px) invalid?
Answer options
- calc() works only with pixels
- Spaces around the + and - operators are required: calc(100% - 50px)
- Percentages cannot be used in calc()
- A semicolon is required after the number
You can check the correct answer by solving this task in the CodeWorlds game.