A method for transferring a pattern from an elastic stamp to a substrate in the presence of a third medium is described. A proximity contact is achieved between the stamp and the substrate. A layer of the third medium between the stamp and the substrate is controlled to a predetermined thickness. Stamps for carrying out this method are also described.