A system and method for extending the utility of an HTML IFrame web page element by enabling the IFrame to dynamically resize its viewing boundaries according to the vertical and horizontal dimensions of the secondary content to be displayed within the IFrame is disclosed. Other embodiments may be described and claimed. The sensor is able to detect changes in a lateral position of a web of print media traveling through a continuous-forms printing system, and the controller is able to adjust a lateral position of a printhead while the printing system is operating to compensate for the detected changes in web position.