1. A computer-implemented method comprising: receiving a request to perform a zoom operation at a focal point of a target element in a page displayed in a display area, wherein the target element comprises a portion of the page; determining an appropriate zoom factor for the zoom operation based on a height and a width of the target element in the page; and performing the zoom operation on the page using the appropriate zoom factor so that the target element remains within the display area with the focal point of the target element retained relative to the target element and relative to the display area.