min-width:100% ensures that the element is no less than its container. width: auto allows an element to maintain its original size.
Thus, the combination of the two can be read as "let the element take up as much space as it needs if it is not less than the width of its container, in which case make it as wide as the container." So basically what the code says: "I don't care if it overflows, just make it fill the page."
There is no reason to add width:auto , since this is the initial value of width , if only to override any other CSS style applied to the element.
In this code example, min-width will be enough.
source share