change align to support horizontal align.