Added margin check for IE