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

Chapter 15. Using Layers > About Layers

About Layers

Layers can serve many purposes. Currently, the most common use of layers is to build multilevel navigation menus, whereby hovering over one menu option pops out a layer containing related menu options. Layers are also used to stack images that can then be controlled by behaviors, such that clicking or hovering over one area of the page displays a particular image elsewhere on the page.

The <DIV> tag is used in HTML to represent a container that can hold other elements. DIV elements are known as block elements because they have height and width dimensions and form a rectangular block-like region. Text and elements inside the DIV are constrained by the dimensions of the element in much the same way that they are in table cells: Text will wrap, but images tend to make the DIV stretch. As a container element, content inside a DIV takes on some of the properties of the DIV itself. For instance, if you set the visibility of the DIV to hidden, all the content inside is hidden as well.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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