Solved

How to make two tables sit side by side on a web form?

Posted on 2016-09-08
1
29 Views
Last Modified: 2016-09-12
I am using Asp.net web form programming. I have two tables on a web form, and I would like to display them side by side.
Both table have several rows and about 3 columns in each table. Each row has a text box, a label and a check box control.
The actual code is not shown here, but a simple example is given below which gives you the gist of what I am talking about.
How can I place the tables side by m? side on a web form?  That is my question.

<table Id="TableOne">
         <tr>
            <td>
               <strong>Select a Font Style:</strong>
            </td>
      </tr>
</table>

<table Id="TableTwo">
         <tr>
            <td>
               <strong>Select a Font Style:</strong>
            </td>
      </tr>
</table>
0
Comment
Question by:brgdotnet
1 Comment
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 500 total points
Comment Utility
quick solution, try create another table to include these 2 tables:
<table cellpadding="0" cellspacing="0" class="style1">
            <tr>
                <td>
                    <table Id="TableOne">
                        <tr>
                            <td>
                               <strong>Select a Font Style:</strong>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table Id="TableTwo">
                         <tr>
                            <td>
                               <strong>Select a Font Style:</strong>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now