I want a div has a right margin depending of the screen width. I wrote the following CSS rule:
...{
right: calc(100% - 960px);
}
But I see in the following result in firebug:
right: calc(-860%) !important;
How can I fix it?
I want a div has a right margin depending of the screen width. I wrote the following CSS rule:
...{
right: calc(100% - 960px);
}
But I see in the following result in firebug:
right: calc(-860%) !important;
How can I fix it?
My problem was using less instead of css. I resolved doing
right: calc(~"100% - 960px");
Please define the width of your div Like
div {
width: 90%; /* fallback if needed */
width: calc(100% - 3em);
}