In brief
vertical-align applies to inline boxes, inline-block boxes and table cells. It is not a general command for vertically centring every block element.
Useful to know
vertical-align applies to inline boxes, inline-block boxes and table cells. It is not a general command for vertically centring every block element. [1]
It can help align an icon beside text within a line. For centring a card in a large panel, use a suitable layout such as flex or grid rather than expecting identical behaviour in every context.
Sources
For further detail and to check the information: