0

Alright so in my CSS I'm trying to do the math calc((100%/5)+10px); When I do this It doesn't work. When I do calc(100%/5); It works just fine. What do I need to do to get the +10px working?

dippas
  • 58,591
  • 15
  • 114
  • 126
user2892875
  • 99
  • 1
  • 1
  • 9

1 Answers1

4

What you need to do, is use the proper syntax:

calc((100%/5) + 10px)

https://developer.mozilla.org/en-US/docs/Web/CSS/calc: “Note: The + and - operators must always be surrounded by whitespace.”

CBroe
  • 91,630
  • 14
  • 92
  • 150