css - calc() in less doesn't work -


this question has answer here:

i want div has right margin depending of screen width. wrote following css rule:

...{    right: calc(100% - 960px); } 

but see in following result in firebug:

right: calc(-860%) !important; 

how can fix it?

my problem using less instead of css. resolved doing

right: calc(~"100% - 960px"); 

Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -