Not sure I'm following. To clarify: You get greater depth of field (DoF), or more of the image in focus from foreground to background when: You use a shorter focal length lens (zoom or prime, it doesn't matter), and/or when the subject is farther from the camera, and/or when you use a smaller aperture (larger f#). Conversely, using a telephoto lens and/or large aperture (smaller f#) and/or place the subject nearer the camera, the area between the foreground and background in sharp focus will be less, or shallower.