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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:17:23+00:00 2026-06-17T22:17:23+00:00

I have a table with 3 columns in it and a head. Like this:

  • 0

I have a table with 3 columns in it and a head. Like this:

enter image description here

Here is my html code:

            <table>
                <thead>
                    <tr>
                        <th class="right"><input type = "checkbox"></th>
                        <th class="left">Afficher: Tous blah blah</th>                            
                        <th class="right">Trier par: Numéro</th>
                    </tr>
                </thead>

                <tbody>
                    <tr><td class="right"><input type="checkbox"></td><td class="left">12/00119</td><td class="left">XXXX XXXX XXXX XXXXXXX XXXXXXXX XXXXXX</td></tr>
                    <tr><td class="right"><input type="checkbox"></td></td><td class="left">12/00120</td><td class="left">YYYYYY YYYYYY YYYYYYYY YYYYYYY YYYYYYY</td></tr>
                    ...

As you can see, the text in the 2nd col of the header is much more wider than the content of the rows below it. So the Heading text is wraped. Please note that the 3rd col of the header is right align.

My question: is it possible to have the heading text (of 2nd col) to continue on the same line BUT not expanding the corresponding column of the main rows of the table.

Here is what I would like to achieve:

enter image description here

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-06-17T22:17:24+00:00Added an answer on June 17, 2026 at 10:17 pm

    As of my understanding of tables, what you are trying to do is not possible.

    Now, you can split the cols and then rejoin them with colspan, but maybe it’s a better idea to move the header out of the table?

    http://jsfiddle.net/5fTDk/

          <table>
                <thead>
                    <tr>
                        <th class="right"><input type = "checkbox"></th>
                        <th colspan="2" class="left nobr">Afficher: Tous asdasd asd blah blah <div>Trier par: Numéro</div></th>                            
    
                    </tr>
                </thead>
    
                <tbody>
                    <tr>
                    <td class="right"><input type="checkbox"></td>
                    <td  class="left date">12/00119</td>
                    <td  class="left content">XXXX XXXX XXXX XXXXXXX XXXXXXXX XXXXXX</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 have a table, and when I click on one of the head columns
The table columns have the data type BLOB and CLOB. What are the corresponding
I have table with two columns (varchar from, varchar to). This table represents connections
I have a table that has just one row that has columns with class='99999'.(
I have an R script which looks like this: library(ggplot2) df <- read.table(path/to/file.txt, header=TRUE)
This question suddenly popped into my head... I have a table that ties two
I have a table something like this: Product SellingPrice Cost Profit Product 1 49
I'd like to have (at a minimum) the first column of my HTML table
Here is the code I have came up for this problem. $link = mysql_connect($host,
I currently have a html table (with 2 columns) and I am trying to

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.