locked
Are spaces required in CSS calc()

    Question

  •  when i set the style like this:

    <img src="#" style="width: 30px;height: 30px;background-color: #fff;position: absolute;top: calc(50% - 15px);left: calc(50% - 15px);"/>

    the result is:

    but when i clear the Space in calc like this:

    <img src="#" style="width: 30px;height: 30px;background-color: #fff;position: absolute;top: calc(50%-15px);left: calc(50%-15px);"/>

    the result is:

    is this a bug?


    Thursday, May 3, 2012 9:22 AM

Answers