Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Once you free an object from the flow of a web page by giving it a position other than static (such as relative or absolute), you can move it where you like on a page (or within its containing object). Using this class, you can change an object’s horizontal position on the page as shown in Figure 8-16, in which a 115 × 115–pixel object has been inset from the left of the browser by 475 pixels.
This class uses the replace() function to pass the horizontal location from the class argument to the S() function in order to modify the object’s left offset by changing its left property.
FIGURE 8-16 The box has been inset from the left by 475 pixels using this class.