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 7174815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:08:25+00:00 2026-05-28T16:08:25+00:00

I am making a calendar using the following HTML code: <!DOCTYPE HTML PUBLIC -//W3C//DTD

  • 0

I am making a calendar using the following HTML code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head></head>
<body>
    <table border="1">
        <tr>
            <td colspan="2">Mon</td>
            <td colspan="2">Tue</td>
            <td colspan="2">Wed</td>
            <td colspan="2">Thu</td>
            <td colspan="2">Fri</td>
        </tr>
        <tr>
            <td colspan="1">Item1</td>
            <td colspan="9">Item2</td>
        </tr>
    </table>
</body>

Each day has a colspan of 2 so that I can show whether an item takes place just in the morning or for a whole day etc.

In the above example I want “Item1” to show in the first cell (Mon morning) and “Item2” to show from Mon afternoon through to Fri.

However, when viewing the output, “Item1” is taking up the whole of Mon and “Item2” is displaying from Tue to Fri.

Is it possible to do what I am trying to do?

Thanks

  • 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-05-28T16:08:27+00:00Added an answer on May 28, 2026 at 4:08 pm

    I think the problem is that you’ll actually have to have a row with colspan="1" in order for your spans to actually work.

    If you’re actually representing am/pm in your calendar, why not just add a row under the “Mon Tue … Fri” row, like so:

     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
      <style>
        td,th { min-width: 50px; }
      </style>
    </head>
    <body>
      <table border="1">
        <thead>
          <tr>
            <th colspan="2">Mon</th>
            <th colspan="2">Tue</th>
            <th colspan="2">Wed</th>
            <th colspan="2">Thu</th>
            <th colspan="2">Fri</th>
          </tr>
          <tr>
            <th>AM</th>
            <th>PM</th>
            <th>AM</th>
            <th>PM</th>
            <th>AM</th>
            <th>PM</th>
            <th>AM</th>
            <th>PM</th>
            <th>AM</th>
            <th>PM</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td colspan="1">Item1</td>
            <td colspan="9">Item2</td>
          </tr>
        </tbody>
      </table>
    </body>
    </html>
    

    I also put the headers into a <thead> and the actual items into a <tbody>, and made the headers <th> tags instead of <td>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an HTML table for a calendar and I want to fill the
I have telerik controls on my page. I am making a vacation calendar using
I'm making a calendar From in C# using WinForms. I've put it together using
I'm making a calendar for jquery mobile, I'm using the jquery weekcalendar (jQ wC),
I'm making a custom event calendar with PHP. I am trying to get the
When making changes using SubmitChanges() , LINQ sometimes dies with a ChangeConflictException exception with
I'm using the JQuery DatePicker as a little Calendar Dashboard, marking dates with agenda
I'm making an online calendar. One will be able to create en event and
I have below code where i disable and enable a calendar clickable icon. <p>
I'm making a calendar generator in JavaScript. I need the Unix Timestamp for easter

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.