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 aggressive compilation css3 calc


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -