It's possible that this solution may not completely address your issue, as the provided sample code is quite brief and doesn't offer a clear view of the element in question. I attempted to navigate to your website but was unable to locate the specific element referenced. Consequently, it's challenging for us to accurately determine your desired outcome.
Margin refers to the space surrounding your div element, such as a modal window. In the code snippet you've shared, you are instructing the browser to position the element at the top with no margin applied (0 margin at the top), allowing automatic alignment based on the width of the element, ultimately centering it on the page.
You can adjust the size of your element using the width property. To make it smaller, simply reduce the percentage value.
.modal-content {
margin: 0 auto; // Setting margins: top and bottom to 0, left and right to auto.
background-color: #fefefe;
border: 1px solid #888;
border-width: 3px;
width: 60%; // Define the width of your element.
}
TIP: Consider removing any preset margins and padding from your body element to ensure your element aligns with the edge of the browser window.