Closed Hai-San closed 6 years ago
I want to do the following calculation: div{ left: ((100% - 1230px) / 2); }
div{ left: ((100% - 1230px) / 2); }
result: div{ left: -565%; }
div{ left: -565%; }
The correct would be: div{ left: calc(50% - 615px); } or
div{ left: calc(50% - 615px); }
div{ left: 336.5px; }
If I use as in the example below everything works correctly: div{ left: calc((100% - 1230px) / 2); }
div{ left: calc((100% - 1230px) / 2); }
This should be reported on the stylus project
I want to do the following calculation:
div{ left: ((100% - 1230px) / 2); }
result:
div{ left: -565%; }
The correct would be:
div{ left: calc(50% - 615px); }
ordiv{ left: 336.5px; }
If I use as in the example below everything works correctly:
div{ left: calc((100% - 1230px) / 2); }