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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:05:53+00:00 2026-05-22T23:05:53+00:00

I have some radio buttons on which I have applied css to align them.

  • 0

I have some radio buttons on which I have applied css to align them.
Here is the image:

enter image description here

These are all placed in a table and third column of table contains one listbox or dropdown list against each pair of radio button and when I click the second radio button, hidden listbox or dropdown appears in the third column.

As I have applied css on it to set its height and width, when I click the second radio button of each pair and listbox appears, third column doesn’t grow dynamically. See the image:

enter image description here

I can’t remove CSS because alignment will suffer.

There is another table on the right side which I want also grow or shrink on the basis of clicking radio buttons. But it was not fitting in first table because I have not much idea of css, so I separate it but I really wish this to merge in first table somehow without affecting table structure.

Code of aspx left table is:

<div class="formBroadLeftCol">
                    <table border="1">
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllStaff" runat="server" Text="All Staff" AutoPostBack="true"
                                    Checked="true" GroupName="grpStaff" OnCheckedChanged="rdoAllStaff_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoStaff" runat="server" Text="Staff" AutoPostBack="true" GroupName="grpStaff"
                                    OnCheckedChanged="rdoStaff_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divStaff" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstStaff" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllService" runat="server" Text="All Services" AutoPostBack="true"
                                    Checked="true" GroupName="grpService" OnCheckedChanged="rdoAllService_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoService" runat="server" Text="Service" AutoPostBack="true"
                                    GroupName="grpService" OnCheckedChanged="rdoService_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divService" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstService" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllServiceType" runat="server" Text="All Service Types" AutoPostBack="true"
                                    Checked="true" GroupName="grpServiceType" OnCheckedChanged="rdoAllServiceType_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoServiceType" runat="server" Text="Service Type" AutoPostBack="true"
                                    GroupName="grpServiceType" OnCheckedChanged="rdoServiceType_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divServiceType" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstServiceType" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllServiceStatus" runat="server" Text="All Service Statuses"
                                    AutoPostBack="true" Checked="true" GroupName="grpServiceStatus" OnCheckedChanged="rdoAllServiceStatus_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoServiceStatus" runat="server" Text="Service Status" AutoPostBack="true"
                                    GroupName="grpServiceStatus" OnCheckedChanged="rdoServiceStatus_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divServiceStatus" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstServiceStatus" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllTreatmentProvider" runat="server" Text="All Treatment Provider"
                                    AutoPostBack="true" Checked="true" GroupName="grpTreatmentProvider" OnCheckedChanged="rdoAllTreatmentProvider_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoTreatmentProvider" runat="server" Text="Treatment Provider"
                                    AutoPostBack="true" GroupName="grpTreatmentProvider" OnCheckedChanged="rdoTreatmentProvider_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divTreatmentProvider" runat="server" visible="false" class="divListBox"
                                    style="width: 175px; height: 80px;">
                                    <asp:ListBox ID="lstTreatmentProvider" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist" DataSourceID="dtsTreatmentProviders" DataTextField="FirstName" DataValueField="ServiceId"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllConsumerStatus" runat="server" Text="All Consumer Statuses"
                                    AutoPostBack="true" Checked="true" GroupName="grpConsumerStatus" OnCheckedChanged="rdoAllConsumerStatus_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoConsumerStatus" runat="server" Text="Consumer Status" AutoPostBack="true"
                                    GroupName="grpConsumerStatus" OnCheckedChanged="rdoConsumerStatus_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divConsumerStatus" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstConsumerStatus" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist" DataSourceID="dtsClientStatus"
                                        DataTextField="Status" DataValueField="Id"></asp:ListBox>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="tdShortLeft">
                                <asp:RadioButton ID="rdoAllEhnicity" runat="server" Text="All Ehnicities" AutoPostBack="true"
                                    Checked="true" GroupName="grpEhnicity" OnCheckedChanged="rdoAllEhnicity_CheckedChanged" />
                            </td>
                            <td class="tdShortRight">
                                <asp:RadioButton ID="rdoEhnicity" runat="server" Text="Ehnicity" AutoPostBack="true"
                                    GroupName="grpEhnicity" OnCheckedChanged="rdoEhnicity_CheckedChanged" />
                            </td>
                            <td class="tdShortMiddle">
                                <div id="divEhnicity" runat="server" visible="false" class="divListBox" style="width: 175px;
                                    height: 80px;">
                                    <asp:ListBox ID="lstEhnicity" runat="server" SelectionMode="Multiple" Width="175px"
                                        Height="81" CssClass="SingleColumnlist" DataSourceID="dtsEthnicity" 
                                        DataTextField="LookupItem" DataValueField="Id"></asp:ListBox>
                                </div>
                            </td>

                        </tr>
                    </table>

Code of Right table:

<div class="formShortRightCol">
                        <table border="1">
                            <tr>
                                <td>
                                <asp:CheckBoxList ID="chkStaff" runat="server" RepeatDirection="Horizontal">
                                            <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                            <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                        </asp:CheckBoxList>
                                        </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkService" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkServiceType" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkServiceStatus" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkTreatmentProvider" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkConsumerStatus" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBoxList ID="chkEthnicity" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Text="Display" Value="Display"></asp:ListItem>
                                        <asp:ListItem Text="Sub Totals" Value="Sub Totals"></asp:ListItem>
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                        </table>
                    </div>

Relevant CSS classes are:

.formBroadLeftCol
{   
    padding: 0px 0px 0px 0px;
    float:left; 
    width:450px;
}

.formShortRightCol
{
    padding: 0px 0px 0px 0px;
    float:right; 
    /*width:180px;*/
}

.tdShortLeft
{
    width:150px;
    height:20px;
    float:left; 
    padding: 5.5px 0px 5.5px 0px;
}

.tdShortRight
{
    width:150px;
    height:20px;
    /*float:right; */
    padding: 5.5px 0px 5.5px 0px;
}

.tdShortMiddle
{
    width:100px;
    height:20px;
    float:right;
    margin:0px 25px 0px 0px;
    padding: 5.5px 0px 5.5px 0px;
}
  • 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-22T23:05:53+00:00Added an answer on May 22, 2026 at 11:05 pm

    This is happening because you have created float based layout on the various block elements. Floating elements break out of the normal flow of the page.

    You don’t think you need to apply float on the td‘s. You can make use of the text-align: left; for aligning the element in the td.

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

Sidebar

Related Questions

i have a form which user enters some data, could be checkboxes, radio buttons,
I have 3 radio buttons which hide/show some div's. The radio buttons are getting
I have a group box which has some radio buttons. I am trying to
I have a form with some radio buttons that are disabled by default. When
I have some options for pricing using radio buttons. When a user selects the
I have some ASP.NET web services which all share a common helper class they
I have some radio buttons and I'd like to have different hidden divs show
I have the following code in jQuery for a set of radio buttons which
I need some help. I have a div inside which there are some radio
I have some radio buttons that are created dynamically with javascript. I need to

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.