How to set up a registration form at the center of the site?

I think if I use
margin:auto;
witdh:xx px;
when different screen sizes will be askew, have not encountered such a problem, habré already read doesn't help.
5afbe51c75347570716763.png
this block is right in the middle
June 5th 19 at 21:38
2 answers
June 5th 19 at 21:40
Solution
display:flex;
justify-content:center;
align-items:center;
I should add, it is necessary for framing tag, you ask - Akeem.Frits commented on June 5th 19 at 21:43
June 5th 19 at 21:42
There is another option without flake:
.container {
 position: relative;
}
.window {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
}

Also specify the width and height respectively.

Find more questions by tags BootstrapCSSHTML