Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9202599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:17:41+00:00 2026-06-17T23:17:41+00:00

How can I achieve this kind of table: Inside the Schedule column, there are

  • 0

How can I achieve this kind of table:

enter image description here

Inside the Schedule column, there are sub columns (Jan, Feb and so on).

I tried <th></th> inside a <th></th>

But it is not working.

See my fiddle: http://jsfiddle.net/TAJzY/1/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:17:42+00:00Added an answer on June 17, 2026 at 11:17 pm
    • The solution is colspan="" and rowspan="":
      • Use colspan="12" on the "Schedule/Milestone of Activities" cell.
        • And remove the 12 empty trailing cells in the same <tr> row.
      • Use rowspan="2" on the "Estimated Budget" cell.
        • And remove the single empty initial <th> cell from the <tr> below.
    • Don’t forget to use explicit <thead>, <tbody>, and optional <tfoot> sections.
      • While you can use HTML tables without explicit sections, styling HTML tables with CSS is a lot easier and effective this way, and you can use techniques like thead { position: sticky; } for Excel-style "frozen" rows which are otherwise very difficult – or just tedious – to implement otherwise.

    Step 1:

    First, make a table, without any splitting/merging of cells, so you have something like this (click the "Run code snippet" button below to see the table):

    table { border: 1px outset #bbb; }
    table > * > tr > * { border: 1px inset #bbb; }
    
    thead { background-color: #7ACABD; text-align: center; }
    tbody { background-color: #e0fffa; }
    tfoot { background-color: #39c4ae' }
    <table>
        <thead>
            <tr>
                <th>Estimated Budget</th>
                <th>Schedule/Milestone of Activities</th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
                <th></th>
            </tr>
            <tr>
                <th></th>
                <th>Jan</th>
                <th>Feb</th>
                <th>Mar</th>
                <th>Apr</th>
                <th>May</th>
                <th>Jun</th>
                <th>Jul</th>
                <th>Aug</th>
                <th>Sep</th>
                <th>Oct</th>
                <th>Nov</th>
                <th>Dec</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>$123</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
             <tr>
                <td>$456</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
        </tbody>
        </table>

    Step 2:

    Then make the "Schedule/Milestone of Activities" cell span all 12 remaining columns (of the 13 total) with colspan="12" – which also means removing the empty trailing <th></th> elements in the same <tr> as those are now represented by the <th colspan="12"> cell:

    table { border: 1px outset #bbb; }
    table > * > tr > * { border: 1px inset #bbb; }
    
    thead { background-color: #7ACABD; }
    tbody { background-color: #e0fffa; }
    tfoot { background-color: #39c4ae' }
    <table>
        <thead>
            <tr>
                <th>Estimated Budget</th>
                <th colspan="12">Schedule/Milestone of Activities</th>
            </tr>
            <tr>
                <th></th>
                <th>Jan</th>
                <th>Feb</th>
                <th>Mar</th>
                <th>Apr</th>
                <th>May</th>
                <th>Jun</th>
                <th>Jul</th>
                <th>Aug</th>
                <th>Sep</th>
                <th>Oct</th>
                <th>Nov</th>
                <th>Dec</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>$123</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
             <tr>
                <td>$456</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
        </tbody>
        </table>

    Step 3:

    To make the "Estimated Budget" cell span those 2 rows in <thead> add rowspan="2" and also remove the empty initial <th></th> in the second <tr> (as that empty <th> cell’s "slot" is now taken by the <th rowspan="2"> from the previous row).

    Like so:

    table { border: 1px outset #bbb; }
    table > * > tr > * { border: 1px inset #bbb; }
    
    thead { background-color: #7ACABD; }
    tbody { background-color: #e0fffa; }
    tfoot { background-color: #39c4ae; }
    
    /* Right-align budget numbers in the first column: */
    table > tbody > tr > td:first-child { text-align: right; }
    <table>
        <thead>
            <tr>
                <th rowspan="2">Estimated Budget</th>
                <th colspan="12">Schedule/Milestone of Activities</th>
            </tr>
            <tr>
                <th>Jan</th>
                <th>Feb</th>
                <th>Mar</th>
                <th>Apr</th>
                <th>May</th>
                <th>Jun</th>
                <th>Jul</th>
                <th>Aug</th>
                <th>Sep</th>
                <th>Oct</th>
                <th>Nov</th>
                <th>Dec</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>$123</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
             <tr>
                <td>$456</td>
                <td>j</td>
                <td>f</td>
                <td>m</td>
                <td>a</td>
                <td>m</td>
                <td>j</td>
                <td>j</td>
                <td>a</td>
                <td>s</td>
                <td>o</td>
                <td>n</td>
                <td>d</td>
            </tr>
        </tbody>
        </table>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure this is simple but I can't figure out how to achieve it:
I want to hide framelayout dynmically in android, How I can achieve this.
How can I achieve this view with CSS: ------------------TITLE or TITLE------------------ I have <div
How can I achieve this behaviors onclick with jquery : default state: <a href=something.html>Anchor</a>
Can't seem to achieve this simple functionality! All I want is to clear a
I try that a User can be member of several associations. To achieve this
I hope this I can explain what I am trying to achieve: I want
This is kind of a strange question, but I will try to explain it
can anybody help me understand how Honda achieved this effect: http://testdays.hondamoto.ch/ I mean the
if we implement java interpreter in hardware then how we can achieve architecture neutrality

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.