Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
With this class, you can specify the height of an object as a dynamic class parameter, as in the case of Figure 8-15, in which the example in the previous plug-in has also had its height set to 70 pixels.
This class uses the replace() function to pass the width from the class argument to the S() function in order to modify the object’s height by changing the height property.
To use this class, enter the height amount in pixels within square brackets after the class name like this, which sets the height of the <div> to 70 pixels:
<div class='h[70] yellow red_b'>Hello</div>
No measurements other than pixels are supported, and you must enter a number greater than 0 in the square brackets.