Work around for browsers not supporting calc method