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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:09:48+00:00 2026-05-23T09:09:48+00:00

I have an HTML table which is styled using CSS. The table is composed

  • 0

I have an HTML table which is styled using CSS. The table is composed of two rows, but the upper row only has need of 3 columns whereas the bottom row has 5 columns.

<table class="xp-flt-leg-sum" name="flightLegSummary">
    <tbody>
        <!--Row 1-->
        <tr class="xp-flt-ctyttl-fnt" name="from2City">
            <!--Col1 -->
            <td colspan="2" class="flightLegSummary xp-fl-md-lg"><span id="departureCity0">Seattle</span></td>
            <!--Col2 -->
            <td colspan="1" class="xp-fl-md-lg"><span id="arrivalCity0">New York</span></td>
            <!--Col3 -->
            <td colspan="2">
                <span id="connectingCity-0-0" class="xp-connecting-cities">
                    Charlotte                                         
                 </span>
            </td>
        </tr>
        <tr class="xp-flt-arptttl-fnt">
            <!--Col1 -->
            <td class="xp-flt-mdl-leg-col1 ">
                <span id="departureAirport0">SEA&nbsp;</span>
                <span id="departureTime0">
                    10:15pm
                </span>
            </td>
            <!--Col2 -->
            <td class="xp-flt-mdl-leg-colicn ">
                <span class="xp-flt-mdl-drctn-icn" id="directionIcon0"><!-- --></span>
            </td>
            <!--Col3 -->
            <td class="xp-flt-mdl-leg-col2 ">
                <span id="arrivalAirport0">LGA&nbsp;</span>
                <span id="arrivalTime0">
                    9:45am
                </span>
                <span style="display:inline-block;" id="addedDays">
                            +1&nbsp;Tag
                </span>
            </td>
            <!--Col4 -->
            <td class="xp-flt-mdl-leg-col3">
                <span class="xp-flt-leg-stop-span" id="flight0StopCount">
                    1&nbsp;Stopp
                </span>
            </td>
            <!--Col5 -->
            <td class="xp-flt-mdl-leg-col4">
                <span id="flightDuration0">8Std.&#8203;30Min.</span>
            </td>
       </tr>

    </tbody>
</table>

Below is the CSS controlling the table.

.xp-fl-md-lg {
    vertical-align: bottom !important;
}
.flightLegSummary {
    width: 111px;
}
#flightLegOutterCont .xp-flt-arptttl-fnt {
    color: #333333;
    font-size: 12px;
    font-weight: bold;
    line-height: 10px;
}

#flightModuleControl .xp-flt-mdl-leg-col1 {
    max-width: 52px;
    min-width: 52px;
    padding-bottom: 1px;
    padding-top: 6px;
}

#flightModuleControl .xp-flt-mdl-leg-colicn {
    max-width: 15px;
    padding-bottom: 1px;
    padding-top: 6px;
    text-align: center;
}
#flightModuleControl .xp-flt-mdl-leg-col2 {
    padding-bottom: 1px;
    padding-top: 6px;
    width: 110px;
}

#flightModuleControl .xp-flt-mdl-leg-col3 {
    padding-bottom: 1px;
    padding-right: 7px;
    padding-top: 5px;
    width: 76px;
}
#flightModuleControl .xp-flt-mdl-leg-col4 {
    padding-bottom: 1px;
    padding-top: 6px;
    width: 54px;
}

The problem that I’m facing is that I want to modify all the following cells to be a certain width:

<Row1,Col1> 98px wide
<Row1,Col2> 130px wide
<Row2,Col1> 86px wide
<Row2,Col2> 12px wide
<Row2,Col3> 130px wide
<Row2,Col4> 76px wide

I’ve been struggling, and I can’t seem to modify the rows to be the desired width. Also, I don’t understand the role of colspan for the first row. When I remove however, it really screws up the positioning of the cells.

  • 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-23T09:09:49+00:00Added an answer on May 23, 2026 at 9:09 am

    Colspan sets the number of columns a cell should span. Here you have 3 header cells, the first spanning 2 columns below it, the second spanning 1, and the third spanning 2 (adding up to five columns below the three header cells).

    It looks like you want 3 cells on top and 4 columns below, correct? If so you need to make the 3rd header cell be colspan=1 and it will be 76px wide like the column below it.

    Hope this helps!

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

Sidebar

Related Questions

I have a table in which i append rows on onclick event, the row
I have an html table which i bind data dynamically on the server side
I have a repeater control outputting some HTML. I want a table which outputs
I have two HTML tables which would ideally be placed side by side on
I have a HTML file that has code similar to the following. <table> <tr>
I have an html table <table border=0 width=100%> <tr class=headerbg> <th width=5%> No </th>
I have an HTML table that looks like this: ------------------------------------------------- |Column 1 |Column 2
I have an HTML table with several columns and I need to implement a
I have a very specific html table construct that seems to reveal a Gecko
I have to build an HTML table that shows data for users versus pages

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.