Div doesn't center when min-width set
问题 I want a webpage, with the content centered, and specify a minimum width so it resizes on small screens of smartphones, but still looks fine on PCs. If I set the width of my div to 1024px, and margins auto, then the div stays centered when the browser window is stretched wider than that. But obviously this requires the user to scroll sideways if they're viewing the site on a small screen. So I tried changing width to "min-width:480px" and the div does not stay centered in a large browser