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

Chapter 11. Aligning Text Using XHTML > Nesting the div Element

Nesting the div Element

The div element can be nested. This is a convenient way to apply alignment—and style—to divisions within divisions of a document.

Remember those nested boxes, where you would open one, then another, and finally another smaller one inside of that one? This is the concept of nesting. As with nesting lists, the nesting of divisions can help you gain a lot of control over the format of your HTML document with ease.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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