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 -

delphi - Take screenshot in webcam using VFrames in Console Application -

c++ - Migration from QScriptEngine to QJSEngine -