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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:20:18+00:00 2026-05-26T10:20:18+00:00

The colspan is the same but does not look the same when I run

  • 0

The colspan is the same but does not look the same when I run the program and view it in the browser, Why is that? One is a little bit longer than the other. Parent/Guardian Information is longer than the Student Information..Thanks for your Help

 <td class="tblHead"  colspan="6">Student Information</td>

<td class="tblHead" colspan="6"> Parent/Guardian Information</td>



   <asp:Panel ID="panelADD" runat="server">
    <table style="width:100%; text-align:left;">
    <tr>
        <td class="tblHead"  colspan="6">Student Information<uc2:PopupCertify ID="ucPopupCertify"        runat="server" />
        </td>
    </tr>
    <tr>
    <td> &nbsp;</td>
    </tr>



 <table style="width:100%; text-align:left;">
      <tr>
       <td class="tblHead" colspan="6"> Parent/Guardian Information</td>
    </tr>
    <tr>
  • 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-26T10:20:18+00:00Added an answer on May 26, 2026 at 10:20 am

    Colspan doesn’t set the width. It simply says this cell spans X number of columns. So in your case you are creating a single cell that spans 6 columns. Since the width of the columns spanned could be different, then the width of the cells will be different.

    Since currently there is only one row, with a single cell in that row (that spans 6 columns), the cell width will be the same size as its contents. So, because the text “Parent/Guardian Information” is longer than “Student Information” its cell will be longer to accommodate it.

    To make these cells the same size, you should update your CSS Class tblHead to include a width:

    <style>
    .tblHead {
      width: 350px;
      /* Your other style information */
    }
    </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not talking about white space in the content, but the code itself.
I have table like that : <table id=table_id class=tablesorter> <thead> <tr class=trheader> <th colspan=2>111</th>
I trying to think in a way that I can have the same methods
I want to set colspan for the header row in the grid view to
I'm making a timeline view in html but I ran into the following problem:
I am trying to place three submit buttons in the same line but they
I wanted to use the Spark Grid but at the same time I realized
I have some tabular data with some functionality to view details that fires off
Can anyone explain rowspan and colspan , col and colgroup ? And are these
I've been working on a site that has a lot of PHP/Smarty involved, I've

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.