Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8 Dynamic Objects > Plug-in 71: Height (h[n])

PLUG-IN 71: Height (h[n])

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.

Variables, Functions, and Properties
image
About the Class

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.

How to Use It

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial