I've tested it in the most recent versions of Firefox, Chrome, IE 11. In none of those browsers it works when you use the CSS calc()
function to calculate e.g. width
. As far as I can see I have applied it properly. For reference you might want to check
Why is this not working?
div {
background-color: blue;
height: 50px;
width: calc(100%-250px);
}
<div></div>
Demos:
Edit:
Yes, this question developed to become a duplicate in the course of many edits, but I still think this should remain here, because it illustrates the problem better than for example CSS calc() not working . Also, imho the answer is much better.