Measurement values are a powerful way to position your background images. They enable you to place your image precisely in any location you want. The syntax for using measurement values is very similar to the one you have just used when declaring keyword pairs.
When working with measurement values, you can work with several types of units of measure. My personal preference is to stick with either pixels or percentages. Generally, the site design layout I am working on determines the measurement type I will use. In these early examples, you begin by using pixel measurements in your background-position values.
When declaring the use of measurement values within your CSS rules—not just when using background images—you need to declare the unit of measure that is to be used. If you want the browser to render your background image 50 pixels from a given point, you need to type the value as 50px. The same holds true for all measurement types. If you use a percentage as a measurement, you might write your value as 50%. The following Captivate demo and steps cover using measurement values to position background images precisely:
Follow these steps:
Figure 2.The background image positioned to the co-ordinates you set