Checking for verticalAlign and horizontalAlign arguments