Short, self-contained, correct example of how to implement a CSS 2.1 expandable menu bar without the use of JavaScript. You may use the item URL parameter to expand an item with PHP

  • Item 1 (standalone)
  • Item 2 (expandable)
  • Item 2.1 (standalone)
  • Item 2.2 (standalone)
  • Item 2.3 (expandable, breaks without ?item=2)
  • Item 2.3.1 (standalone)
  • Item 2.3.2 (standalone)
  • Item 3 (standalone)
  • Item 4 (expandable, improperly done)
  • Item 4.1 (standalone)
  • Item 4.2 (standalone)
  • Item 5 (expandable)
  • Item 5.1 (standalone)
  • Item 5.2 (standalone)