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

Chapter 12. Box Properties > height Property

12.25. height Property

The height property is used to scale an element (typically an image) to the desired vertical length on a Web page. It can take one of three different properties: a unit of measurement value, a percentage value, and the name value auto, which sets the element to its default size. It has a sibling property, width, which does the exact same thing to horizontal length.

The auto setting is used to set an image to its normal size. height can also take a specific measurement value, which sizes the height of the image to the desired value. It can also take a percentage value that sizes the height of the image in relation to the overall height of the browser window. When it is applied to an object like an image, it scales the image so that the width of the object is also changed. You can see all of these values for height exhibited in Listing 12.19 and displayed within Netscape Navigator 7.0 in Figure 12-26.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint