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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:25:54+00:00 2026-06-08T05:25:54+00:00

I don’t use tables a lot, but when I do get some tabular data

  • 0

I don’t use tables a lot, but when I do get some tabular data it goes in a table. But I was wondering if there was a better, or proper, way of aligning cells other than using empty cells.

For example, I’m working with a checkout table that lists each product, price, etc in a row adding as many rows as needed. At the end, there’s the standard sub, shipping, total fields.

Now they want the last section all on the right and this is a pretty standard setup that I’ve come across. Not everyone has it that way but enough that I’ve seen it. So I’m not against it, but the only way I can see to do it is to add a lot of empty cells to get the aligning correct.

<tr>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td>Sub-Total</td>
</tr>
<tr>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td><!--This cell should be empty--></td>
    <td>Total</td>
</tr>

Since I normally try to follow semantics pretty closely, this doesn’t feel right. Like I’m missing something. But in other areas, some cells just aren’t filled becuase there is no particular data to put there, i.e. if one product has an option but the other products don’t. So it can’t be wrong since those fields MUST be empty. So I’m caught and don’t really know if this is right, wrong, opinion, or what.

  • 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-08T05:25:56+00:00Added an answer on June 8, 2026 at 5:25 am

    You can use the colspan attribute. You will likely want to right-align the text in that column with CSS:

    <tr>
        <td colspan="6">Sub-Total</td>
    </tr>
    <tr>
        <td colspan="6">Total</td>
    </tr>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know how to explain it better but i'm trying to get a response
Don't ask how I got there, but I was playing around with some masking,
Don't know how to google for such, but is there a way to query
(Don't know if this is strictly on-topic, but I don't see any better Stack
Don't ask why, but is there any way to suppress a failed linking error?
Don't ask me how but I managed to get accidentally the following remote branches
Don't get me wrong, I want them to get saved. But I always thought
Don't understand, if Data.Map is and [] is. I found this out while wondering
I don't like Jackson. I want to use ajax but with Google Gson. So
Don't get me wrong - I love Smalltalk, but... To me, the Squeak interface

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.