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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:02:00+00:00 2026-05-18T06:02:00+00:00

I’m creating a page that allows the user to select a time slot from

  • 0

I’m creating a page that allows the user to select a time slot from a schedule. I would prefer to do this with some sort of table layout (vs. using drop down/combo boxes). But I’m having trouble figuring out which path to take because the schedule is layed out like this.
alt text

So M,W,F are the same and T,TR are the same layout. I was hoping to do this with some sort of table instead of pure graphic because I want to be able to update information displayed in the cells. Is there a method other than doing rowspans to get the uneven layout like the picture. Or should I take a completely different approach. All my javascript needs to know is what information(text) is displayed in the cell and which one is being clicked.

  • 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-18T06:02:01+00:00Added an answer on May 18, 2026 at 6:02 am

    The code below is a TABLE solution using the ROWSPAN attribute. CSS is only relied on for setting row heights and column widths.

    The big advantage to this approach is that any cells that expand vertically will cause the entire row to expand the same amount, so your columns and rows will never get misaligned.

    If you instead try a to use more than one table, or a DIV/CSS-driven solution, you can use Javascript to realign things for you, but this can be quite difficult to implement correctly.

    alt text

    <html>
        <head>
            <style>
                table{border-collapse:collapse;border-spacing:0}
                td,th{border:1px solid #000}
                .m,.w,.f{width:104px}
                .t,.r{width:117px}
                .r5{height:12px}
                .r8{height:20px}
                .r9{height:27px}
                .r1,.r10,.r12,.r14{height:60px}
                .r2,.r7,.r11,.r13{height:18px}
                .r3,.r4,.r6{height:40px}            
            </style>
        </head>
        <body>
            <table cellspacing="0">
                <tr>
                    <th>Monday</th>
                    <th>Tuesday</th>
                    <th>Wednesday</th>
                    <th>Thursday</th>
                    <th>Friday</th>
                </tr>
                <tr class="r1">
                    <td class="m"></td>
                    <td class="t" rowspan="2"></td>
                    <td class="w"></td>
                    <td class="r" rowspan="2"></td>
                    <td class="f"></td>
                </tr>
                <tr class="r2">
                    <td class="m" rowspan="2"></td>
                    <td class="w" rowspan="2"></td>
                    <td class="f" rowspan="2"></td>
                </tr>
                <tr class="r3">
                    <td class="t" rowspan="3"></td>
                    <td class="r" rowspan="3"></td>
                </tr>
                <tr class="r4">
                    <td class="m"></td>
                    <td class="w"></td>
                    <td class="f"></td>
                </tr>
                <tr class="r5">
                    <td class="m" rowspan="2"></td>
                    <td class="w" rowspan="2"></td>
                    <td class="f" rowspan="2"></td>
                </tr>
                <tr class="r6">
                    <td class="t" rowspan="2"></td>
                    <td class="r" rowspan="2"></td>
                </tr>
                <tr class="r7">
                    <td class="m" rowspan="3"></td>
                    <td class="w" rowspan="3"></td>
                    <td class="f" rowspan="3"></td>
                </tr>
                <tr class="r8">
                    <td class="t"></td>
                    <td class="r"></td>
                </tr>
                <tr class="r9">
                    <td class="t" rowspan="3"></td>
                    <td class="r" rowspan="3"></td>
                </tr>
                <tr class="r10">
                    <td class="m"></td>
                    <td class="w"></td>
                    <td class="f"></td>
                </tr>
                <tr class="r11">
                    <td class="m" rowspan="2"></td>
                    <td class="w" rowspan="2"></td>
                    <td class="f" rowspan="2"></td>
                </tr>
                <tr class="r12">
                    <td class="t" rowspan="2"></td>
                    <td class="r" rowspan="2"></td>
                </tr>
                <tr class="r13">
                    <td class="m" rowspan="2"></td>
                    <td class="w" rowspan="2"></td>
                    <td class="f" rowspan="2"></td>
                </tr>
                <tr class="r14">
                    <td class="t"></td>
                    <td class="r"></td>
                </tr>
            </table>
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I have a French site that I want to parse, but am running into
I have a bunch of posts stored in text files formatted in yaml/textile (from

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.