2
Calc() in safari is not working. I tried prefixes and it didn’t work either. Someone knows a solution?
I’m wearing it like this:
#myDiv{
width: calc(100% - 160px);
width: -webkit-calc(100% - 160px);
width: -moz-calc(100% - 160px);
}
Solution:
Guys, I’m using safari version 5.1 and if according to Can I Use, this property does not support this version.
With me works on Safari 6.1.1. What version of Safari are you using? Does my fiddle work for you? Maybe you are misinterpreting the meaning of the 100%, which is relative to the container.
– bfavaretto
According to this link strange behaviour may occur if height (height) is set in style inline. Take a look if this can be it.
– utluiz
Safari is Webkit, so if in the version you are trying to support this feature will be
-webkit-calc
.– Gabriel Gartz