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

Description

The <div>...</div> element represents a generic block element for containing and styling other block and inline elements as a group. When you position this element absolutely, for instance, its contents go with it to the appropriate locations on the page.

Note

It is a common practice to absolutely position HTMLDivElement objects using styling and the CSS property "position:absolute;". If you do so (or if you set the position to "relative"), the Netscape 4 browser will attach the element to its document.layers array and give it all the properties of a Layer() object.It's not so common to do the same for other elements (such as <p>...</p>), but attaching such positioning has the same effect in Netscape 4.

See Chapter 33, “Styling for HTML Elements,” for more about positioning and hiding elements.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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