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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:17:07+00:00 2026-06-14T06:17:07+00:00

I am trying to replicate this table structure by using div. <asp:Table ID=tblAnnualReportServiceForm runat=server

  • 0

enter image description here

I am trying to replicate this table structure by using div.

<asp:Table ID="tblAnnualReportServiceForm" runat="server" Width="100%" CellSpacing="1" CellPadding="5">
    <asp:TableRow >
        <asp:TableCell HorizontalAlign="Left">
            <asp:Table ID="Table1" runat="server" CellSpacing="1" CellPadding="5">
                <asp:TableRow>
                    <asp:TableCell>
                        <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:TextBox ID="txtStartDate" Width="130px" runat="server"></asp:TextBox>
                    </asp:TableCell>
                </asp:TableRow>
                <asp:TableRow >
                    <asp:TableCell>
                        <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
                    </asp:TableCell>
                    <asp:TableCell>
                        <asp:TextBox ID="txtEndDate" runat="server" Width="130px" style="text-align:left" ValidationGroup="MKE" />
                    </asp:TableCell>
                </asp:TableRow>             
            </asp:Table>
        </asp:TableCell>
    </asp:TableRow>
</asp:Table>

I have tried the following DIV and I haven’t have much CSS experience.

<div>
    <div  style="float:left">
         <asp:Label ID="Label1" runat="server" Text="Start Date"></asp:Label>
    </div>
    <div>
        <asp:TextBox ID="TextBox1" Width="130px" runat="server"></asp:TextBox>
   </div>    
   <div>
        <asp:Label ID="Label2" runat="server" Text="End Date"></asp:Label>
        <asp:TextBox ID="TextBox2" runat="server" Width="130px" style="text-align:left" ValidationGroup="MKE" />
  </div>
</div>  

Any pointers would be of great help. I have too many table structure that needs to be converted to DIV. I appreciate the help

  • 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-14T06:17:09+00:00Added an answer on June 14, 2026 at 6:17 am

    You can do something like this:

    <div>
        <div style="clear:both;">
            <div style="float:left;width:50%;">
                <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
            </div>
            <div style="float:left;width:50%;">
                <asp:TextBox ID="txtStartDate" Width="130px" runat="server"></asp:TextBox>
            </div>
        </div>
        <div style="clear:both;">
            <div style="float:left;width:50%;">
                <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
            </div>
            <div style="float:left;width:50%;">
                <asp:TextBox ID="txtEndDate" runat="server" Width="130px" style="text-align:left" ValidationGroup="MKE" />
            </div>
        </div>
    </div>
    

    If you want to get some paddings/margins you can add another div into a cell div:

    <div style="float:left;width:50%;">
        <div style="border:solid 1px black;padding:5px;margin:1px;">                
                <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
        </div>
    </div>
    

    JsFiddle DEMO or here is a demo with classes (using style is not a very good idea, so I created few classes and removed styles from div tags)

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

Sidebar

Related Questions

I'm trying to replicate this table structure from this article. Here are my POCO's
I am trying to replicate this query using zend framework: SELECT activitytype.description, activity.datecompleted FROM
Rookie question, I think. I'm just trying to replicate this: http://rpubs.com/gallery/googleVis Open a new
I've done this before once, I'm trying to replicate what I did so far
This may be a stupid question, but I'm trying to replicate a customer's OpenLDAP
I am trying to replicate a table produced from a sybase database, I dont
UPDATE: In trying to replicate this problem one more time to answer your questions
ok, so i am trying to replicate this animation at the top of this
first post ever here I'm trying to replicate this sort of JSON object so
I'm trying to replicate this construct: http://kaitnieks.com/images/divme.png The question consists of 2 parts: 1)

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.