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

Chapter 14. Layers and Positioning

Chapter 14. Layers and Positioning

Layers enable you to control the exact position of your elements on a Web page. A layer is basically a container for HTML content, delineated by the <div> or <span> tag, that you can position anywhere on a page. Unlike table cells, you can make layers overlap, or stack on top of one another. You can also use separate layers to make objects appear, disappear, or even move across your page.

Layers are called layers because they can be positioned in three dimensions. You can set an absolute or relative location for a layer along the page's X and Y axes. The third dimension is called the Z-index, which allows layers to overlap one another (Figure 14.1).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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