Doing a very specific equation with calc in less -
i need specific equation using calc in less.
namely this
padding: 0 calc((100% - 1280px)/2 + 30px);
it works when try in editor in chrome i'm not sure parts of equation need encapsulated in ~"".
currently i'm doing below doesn't yield correct sum
padding: 0px ~"calc((100% - 1280px)/2 + 30px)";
less , calc
try:
padding: 0px calc(~"100% - 1280px)/2 + 30px");
its known issue less:
less aggressive compilation css3 calc
Comments
Post a Comment