I have a block (200x400). And inside this block there is another block (50x50). I want that when the window is resized, this child block is always in the center (height).
No matter how I do, with positioning relative: top 50%, margin-top does not help. The block is still shifting. Who will tell you how to solve this problem?