How do I rewrite
margin: 15px calc(-100vw / 2 + 1009px / 2); // 1024px -15px padding
Now I have to write all my media queries and specify exact width, minus 15px (in my case) to get it working.
Instead of 1009px / 2
can I use another calc()
here, like (calc(100vw - 15px)) / 2
?