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

  • Home
  • SEARCH
  • 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 8657771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:36:15+00:00 2026-06-12T15:36:15+00:00

Because of some nuances with jQuery’s Sortable , I’m displaying a table element in

  • 0

Because of some nuances with jQuery’s Sortable, I’m displaying a table element in HTML, but using ‘s to create the columns instead of ‘s (below and in this fiddle):

<style>        
  /* Title row for an action/item */
  .item-row {
    display: table-row;
  }

  /* Keep icon columns narrow */
  .icon_column { 
    display: table-cell;
    width: 20px;
  }

  /* Item columns that are not icons */
  .name_column {
    display: table-cell;
  }    

  .extra_column {
    display: table-cell;
    float: right;
  }
</style>
<table class='table table-condensed'>
  <thead>
    <tr class='table_header'>
      <th>
        <div class='item-row'>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='name_column'>Name</span>
          <span class='extra_column'>Date</span>
        </div>
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <div class='item_row'>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='name_column'>Name 1</span>
          <span class='extra_column'>Date 1</span>
        </div>
      </td>
    </tr>
    <tr>
      <td>
        <div class='item_row'>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='name_column'>Row 2 Name 2</span>
          <span class='extra_column'>Date 2</span>
        </div>
      </td>
    </tr>
    <tr>
      <td>
        <div class='item_row'>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='icon_column'>*</span>
          <span class='name_column'>Name 3</span>
          <span class='extra_column'>Date 3</span>
        </div>
      </td>
    </tr>
  </tbody>
</table>

I want each item-row to display as one line with the extra_column floating all the way to the right. The extra_column seems to be to the right, but the entire item-row seems to be defaulting to two lines.

How can I correct this CSS?
​

  • 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-12T15:36:16+00:00Added an answer on June 12, 2026 at 3:36 pm

    Is this what you are looking for?

    I basically wrapped 2 groups of spans each in another span.. the first group gets float:left and the second group float:right.

    CSS:

    .left { float:left; }
    .right { float:right;}
    

    HTML:

    <div class='item-row'>
      <span class='left'>
        <span class='icon_column'>*</span>
        <span class='icon_column'>*</span>
        <span class='icon_column'>*</span>
        <span class='name_column'>Name</span>
      </span>
      <span class='right'>
        <span class='extra_column'>Date</span>
      </span>
    </div>
    

    I must add that when the content of 1 row extends the space (width) it gets, this goes wrong. I am not sure how thát could be achieved 🙂

    [UPDATE]
    By giving the name_column a fixed width (like 150px), you can get rid of the issue mentioned above. It still goes wrong when the last column has too much data. That probably could be solved by also giving that a fixed width.
    You can get rid of the div wrapper (‘table_container’) if you want it to span ‘the page’.

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

Sidebar

Related Questions

My document is getting some errors when using the W3C validator because some of
In our company, just until recently, we were not using namespaces because some compilers
We are running a Java application that sometimes freezes because some thread is using
I would like to create a custom views, because some database fields are not
I am using celery and i want to use the max-tasks-per-child-setting because some of
Because some email clients don't properly render external stylesheets (or even styles within the
Disclaimer : I kept this because some things may be useful to others, however,
The Groovy Process Management page mentions that: Because some native platforms only provide limited
I am analyzing timestamped YouTube comments. Because some comments may refer to a period
We unfortunately find ourselves having to support our product in IE 6 because some

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.