The ornamental design for a container having a pivotinglid, as shown and described.
FIG. 1 is a top front perspective view of the container having a pivoting lid illustrated in a pivoted open position with the dispensing opening shown in dashed lines:
FIG. 2 is a top view thereof;
FIG. 3 is a front view thereof;
FIG. 4 is a rear view thereof;
FIG. 5 is a side view thereof;
FIG. 6 is a side view thereof showing the side opposite that shown in FIG. 5;
FIG. 7 is a bottom view thereof; and,
FIG. 8 is top rear perspective view thereof.
The broken lines in the figures are environmental structure shown for illustrative purposes only and do not form any part of the claimed design.