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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:28:17+00:00 2026-05-22T01:28:17+00:00

Possible Duplicate: table cell width issue I have a table set up as <html>

  • 0

Possible Duplicate:
table cell width issue

I have a table set up as

<html>
 <body bgcolor="#14B3D9">
<table width="100%" border="1" bgcolor="#ffffff">
    <tr>
        <td width="25%">25</td>
        <td width="50%">50</td>
        <td width="25%">25</td>
    </tr>
    <tr>
        <td width="50%">50</td>
        <td width="30%">30</td>
        <td width="20%">20</td>
    </tr>
</table>
</body>
</html>

How do i get the 2 rows to have different cell width?

  • 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-22T01:28:17+00:00Added an answer on May 22, 2026 at 1:28 am

    As far as i know that is impossible and that makes sense since what you are trying to do is against the idea of tabular data presentation. You could however put the data in multiple tables and remove any padding and margins in between them to achieve the same result, at least visibly. Something along the lines of:

    <html>
    
    <head>
      <style type="text/css">
        .mytable {
          border-collapse: collapse;
          width: 100%;
          background-color: white;
        }
        .mytable-head {
          border: 1px solid black;
          margin-bottom: 0;
          padding-bottom: 0;
        }
        .mytable-head td {
          border: 1px solid black;
        }
        .mytable-body {
          border: 1px solid black;
          border-top: 0;
          margin-top: 0;
          padding-top: 0;
          margin-bottom: 0;
          padding-bottom: 0;
        }
        .mytable-body td {
          border: 1px solid black;
          border-top: 0;
        }
        .mytable-footer {
          border: 1px solid black;
          border-top: 0;
          margin-top: 0;
          padding-top: 0;
        }
        .mytable-footer td {
          border: 1px solid black;
          border-top: 0;
        }
      </style>
    </head>
    
    <body>
      <table class="mytable mytable-head">
        <tr>
          <td width="25%">25</td>
          <td width="50%">50</td>
          <td width="25%">25</td>
        </tr>
      </table>
      <table class="mytable mytable-body">
        <tr>
          <td width="50%">50</td>
          <td width="30%">30</td>
          <td width="20%">20</td>
        </tr>
      </table>
      <table class="mytable mytable-body">
        <tr>
          <td width="16%">16</td>
          <td width="68%">68</td>
          <td width="16%">16</td>
        </tr>
      </table>
      <table class="mytable mytable-footer">
        <tr>
          <td width="20%">20</td>
          <td width="30%">30</td>
          <td width="50%">50</td>
        </tr>
      </table>
    </body>
    
    </html>

    JSFIDDLE

    I don’t know your requirements but i’m sure there’s a more elegant solution.

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

Sidebar

Related Questions

Possible Duplicate: Retrieving the last record in each group I have two tables set
Possible Duplicate: jquery/ajax load new content when available i have a table named news
Possible Duplicate: SQL Server: Only last entry in GROUP BY I have a table
Possible Duplicate: how to select columns as rows? I have a table with ID's,
Possible Duplicate: Datetime vs Timestamp? I have a Mysql table, which has a column
Possible Duplicate: XML Table layout? Two EQUAL-width rows filled with equally width buttons? I
Possible Duplicate: SQL query to find Missing sequence numbers I have a table which
Possible Duplicate: Incrementing a field in SQL using PHP I have a table (T1)
Possible Duplicate: Should each and every table have a primary key? If you never
Possible Duplicate: Add a field and insert an increment value I have this table

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.