Menu

Multi level headers

Help
2006-04-30
2012-10-09
  • David Rabinowitz

    Hi,

    is is possible to do the following table (The year and quarters are headers):
    +-------+-----------+-----------+
    |Product| 2004 | 2005 |
    | +--+--+--+--+--+--+--+--+
    | |Q1|Q2|Q3|Q4|Q1|Q2|Q3|Q4|
    +-------+--+--+--+--+--+--+--+--+
    |XXX |12|23|34|45|56|67|78|89|
    +-------+--+--+--+--+--+--+--+--+
    |YYY |21|32|43|54|65|76|87|89|
    +-------+--+--+--+--+--+--+--+--+

    I couldn't find in the documentation.

    Thanks,
    David

     
    • Praveen Kumar G

      Praveen Kumar G - 2006-05-02

      yes it is possible using the following code

      <display:caption media="html">
      <thead>
      <tr>
      <th rowspan="2">Product</th>
      <th rowspan="4">2004</th>
      <th rowspan="4">2005</th>
      </tr>
      <tr>
      <th>Q1</th>
      <th>Q2</th>
      <th>Q3</th>
      <th>Q4</th>
      </tr>
      </thead>
      </display:caption>


       
      • Praveen Kumar G

        Praveen Kumar G - 2006-05-02

        sorry the code should be

        <display:caption media="html">
        <thead>
        <tr>
        <th rowspan="2">Product</th>
        <th colspan="4">2004</th>
        <th colspan="4">2005</th>
        </tr>
        <tr>
        <th>Q1</th>
        <th>Q2</th>
        <th>Q3</th>
        <th>Q4</th>
        <th>Q1</th>
        <th>Q2</th>
        <th>Q3</th>
        <th>Q4</th>
        </tr>
        </thead>
        </display:caption>


        i messed up something with my copy & paste :-(

         

Log in to post a comment.