My HTML contains an element with the following style:
{
max-width: 1500px;
padding-right: 40px;
padding-left: 40px;
width: auto;
}
Everything looks good when the screen is less than 1580px, and the element is centered. However, when the screen size exceeds 1580px, the element shifts to the right side of the screen with a 40px padding.
Is there a way to center the element when the screen is larger than 1580px?