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

Chapter 8. Layers

Chapter 5 showed you how tables can help lay out a Web page. All in all, they do a pretty good job, but they do have some limitations. Complex tables with lots of cells slow a page’s download time. And a lot of new Web browsers—like those in cellphones and palmtops—can’t handle tables. And then there’s all that tweaking. You could spend a whole afternoon fine-tuning columns and rows to position a cell just so. After spending a little time working with tables, perhaps you’ll find yourself wishing for some kind of magic table cell that you could just draw and place anywhere on your page. Well, in a way, you can. Instead of using table cells, use a layer.

A layer is an invisible container that you can place anywhere on your page. It can hold anything you want—like text, pictures, tables, or even a video. Why bother to put these things in a layer? Because layers give you control—like the ability to position them absolutely anywhere on a page—that you just can’t get with regular page elements on their own.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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