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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:00:33+00:00 2026-05-31T10:00:33+00:00

I have two row, there are some things in 1st row that decide the

  • 0

I have two row, there are some things in 1st row that decide the row’s width;
On the second row I have couple of groups of elements which intended to contain two elements side by side.
I want to make even spaces between these groups of elements in 2nd row. They should stretch all over the cell and take all it’s width.
Could you advice, what would I do?

The code goes like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<body>
<table  border="1">
<tr>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
</tr>
    <tr>
<td colspan="5" align="justify">
    <!-- group1 -->
    <select class="sorter" >
    </select>
    <select class="dir" >
    </select>

    <!-- group2 -->
    <select class="sorter" >
    </select>
    <select class="dir" >
    </select>

    <!-- group3 -->
    <select class="sorter" >
    </select>
    <select class="dir" >
    </select>

    <!-- group4 -->
    <select class="sorter" >
    </select>
    <select class="dir" >
    </select>
</td>
</tr>
</table>
</body>
</html> 

EDIT: So far I did this, and almost got it. But the spaces between first and last groups are not even. Any ideas?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <style>
                table.ball {empty-cells: show}
                table.ball td {text-align:center;border:1px solid blue;}
                table.ball td:nth-last-of-type(1) {text-align:right; } 
                table.ball td:nth-of-type(1) {text-align:left;} 
                select.sorter {width:180px}
        </style>
    </head>
<body>
<table  >
<tr>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
    <td width="200">
        text
    </td>
</tr>
    <tr>
<td colspan="5" align="middle" >
    <table class="ball" width="100%" >
        <colgroup>

        </colgroup>
        <tr>
            <td>
                <!-- group1 -->
                <select class="sorter" >
                </select>
                <select class="dir" >
                </select>
            </td>

            <td>
                <!-- group1 -->
                <select class="sorter" >
                </select>
                <select class="dir" >
                </select>
            </td>

            <td>
                <!-- group1 -->
                <select class="sorter" >
                </select>
                <select class="dir" >
                </select>
            </td>

            <td>
                <!-- group1 -->
                <select class="sorter" >
                </select>
                <select class="dir" >
                </select>
            </td>
        </tr>
    </table>
</td>
</tr>
</table>
</body>
</html>
  • 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-31T10:00:34+00:00Added an answer on May 31, 2026 at 10:00 am

    Maybe this example is close to what you need. I eliminated some of your hard coded info and put it into css.

    table {table-layout: fixed; border-collapse: collapse;}
    td {width: 200px; border: 1px solid black;}
    .sorter, .dir {width: 11.5%;} 
    td[colspan="5"] {text-align: center;}
    

    11.5% width seemed to work well, even though mathematically it seemed that it should be closer to 12.5%, but the select elements were doing some funky stuff with having extra space to their right. However, the text-align: center keeps them evenly spaced nice.

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

Sidebar

Related Questions

I have a table with two columns and one row, and 100% width across
If I were to select a row from a table I basically have two
I have a two or more forms on my page in a row. I'm
I have a time series of two indexes, with each row representing the closing
I have two applications written in Java that communicate with each other using XML
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
I have two elements: <input a> <input b onclick=...> When b is clicked, I
I have a ListView in a ListActivity that's bound to some data. I have
Unix gurus! I have a Java program which passes some parameters to a Servlet
Have some Perl code which is using the DBI module - (the code is

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.