There is a rule for a modal window, where its width is 560px , if you change this property in a larger direction, the size of the modal window will change but it will not be in the center, but will expand to the right. How to set a new window size and so that nothing breaks?
div.modal { position: fixed; top: 10%; left: 50%; z-index: 1050; width: 560px; margin-left: -280px; background-color: #ffffff; border: 1px solid #999; border: 1px solid rgba(0, 0, 0, 0.3); *border: 1px solid #999; -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); -webkit-background-clip: padding-box; -moz-background-clip: padding-box; background-clip: padding-box; outline: none; } UPDATE
I see the dependence of the rules:
width: 560px; margin-left: -280px; If for example change this:
width: 700px; margin-left: -350px; So for the desktop version, everything is ok, but when responding to the mobile version, everything is bad, it breaks down and moves to the left now and the content and part of the modal window disappear.
UPDATE
It turned out that the problem is reproduced in the Google Chrome browser, in other browsers there seems to be no problem ...