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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:06:33+00:00 2026-06-08T06:06:33+00:00

I have a table which is a bit like this: /—+—+—+—+—+—\ | A |

  • 0

I have a table which is a bit like this:

/---+---+---+---+---+---\
| A | B | C | D | E | F |
\---+---+---+---+---+---/

I would like to get A and B to appear visually to be in the same cell, but not actually be in the same cell.

To do this I will need to have the border and padding between A and B become 0px.

However, setting the TD padding (Or margin!) did not work for me. So, any ideas on what I am doing wrong?

  • 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-08T06:06:35+00:00Added an answer on June 8, 2026 at 6:06 am

    I have a different solution, and though slightly more complicated than the one previously suggested, I believe it will give you more flexibility as to how to apply the solution.

    First, it does require some css code as shown below:

    td:not([colspan='2']) {
      /*your styling here*/
    }
    td[colspan='2'] {
      display: table-row;
    }
    td[colspan='2'] > div {
      display: table-cell;
      width: 50%;
      /*same styling here*/
    }
    

    Finally, the html:

    <table>
      <tbody>
        <tr>
          <td colspan='2'>
            <div id="cell-a"></div>
            <div id="cell-b"></div>
          </td>
          <td id="cell-c"></td>
          <!--and so on-->
    

    Basically, the css mimics the table’s built-in display in order to optimize the table-row styling. This will allow css to do all the work, and furthermore, will allow you to put a colspan=’2′ anywhere in order to double up two cells wherever you need. I have already tested locally to ensure that this works.

    Edit:
    Just added the width: 50% under td[colspan=’2′] > div in order to space them out properly within the table structure.

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

Sidebar

Related Questions

I have a table which currently looks a bit like this- CASEID ¦ FORMNAME
I have a table which looks a bit like this: <table> <thead> <tr> <th></th>
i have a table which has many fields but i want to get count
I have a table which is currently displayed like this: Question OptionType What is
I have a table that looks a bit like this: user_id item_id bid_amount 5
I feel like a bit of a newbie posting this, but anyway: I have
I have table in which I am inserting rows for employee but next time
I have a table which stores the data related to posts in this format
I have a object model a bit like this: public class Foo { public
I have a table like this. (BIGINT) (BIGINT) PLAYER_ID FRIEND_ID ---------------------- 1 2 2

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.