I tested it in the latest versions of Firefox, Chrome, IE 11. In none of these browsers does it work when you use the calc() CSS function to calculate, for example. width . As far as I can see, I applied it correctly. For reference you can check
http://www.sitepoint.com/css3-calc-function/
Why is this not working?
div { background-color: blue; height: 50px; width: calc(100%-250px); }
<div></div>
Demonstrations:
http://codepen.io/anon/pen/wazZWm
http://jsfiddle.net/h5mzcow1/
Edit:
Yes, this question began to duplicate during many changes, but I still think it should stay here because it illustrates the problem better than, for example, CSS calc () does not work . Also, imho answer is much better.
css css3
connexo May 23 '15 at 12:18 2015-05-23 12:18
source share