A container such as a nail varnish container is provided which permits the user to quickly remove or put on the cap with a single hand without the need of turning the cap. The container includes a container body having a neck formed with a narrow hole having its top edge tapered. The neck has a tapered upper portion and a small-diameter portion connected to the bottom of the tapered upper portion to define a shoulder on the bottom. Its cap includes a cap body to be fitted on the neck. The cap body houses a vertically movable plug which can be seated on the tapered top edge of the neck, an elastic member which slides downwardly along the outer surface of the tapered upper portion and fits in the small-diameter portion and engages the shoulder, and a spring biasing the plug downwardly relative to the cap body. The cap body is provided with a disengaging means for disengaging the elastic member from the shoulder.
A cosmetic container having a container body for receiving cosmetics and a cap having a cap body, an outer tube, and an inner tube. A first spring for urging the outer tube rearward is installed between the cap body and the outer tube. A second spring for urging the cap body forward is received in the inner tube. A shaft section with an application section is projectingly formed on the inner tube. An engagement groove is provided in the container body, in the outer peripheral surface near its head. A locking ball reception hole and a locking ball received in the hole are provided on the cap body. A restriction projection for restricting the locking ball from moving outward is provided inside the outer tube. The locking ball projected inward by the restriction projection fits in the engagement groove, and the cap is installed on the container body.