How to fix objects in a certain position?

I guess my question is stupid))) But I really cannot understand some fundamental thing. I look at examples of a penguin and a heart, and I don’t see an answer.
So I have 5 objects, 3 of them are created using a pseudo-element :after
Only with the 1152x864 screen my flags “hang” in the right position. How to make objects “freeze”?

1 Like

specify a fixed size for the .flags container?