How to do the alignment in the vertical if the height of the block can change?

Asked the element position: absolute, top: 50%.

How to set the element margin-top: -?px ?

Sorry to use display: flex to fail.
March 19th 20 at 08:53
1 answer
March 19th 20 at 08:55
Solution
How to do the alignment with the absolute?
right before You had to ask)

Find more questions by tags CSS