Results 1 to 7 of 7

Thread: [RESOLVED] Formatting an ASP form?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Resolved [RESOLVED] Formatting an ASP form?

    What is the best way to format an ASP Form? I'm trying to get a "Labels" and "Textbox" controls to horizontally align with each other within a HTML Table and can't do it? By the way...I'm new to Web Development.

    Thanks,
    Blake

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Formatting an ASP form?

    Label and Input are both inline elements so they will line up horizontally by default (in a Table cell or not). If one element is dropping below the other it usually means the width of the container is not wide enough to fit both elements.

    Post your html code.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Formatting an ASP form?

    Bruce,

    I'm actually using ASP.Net. The "Input" are ASP Textboxes objects. If I'm understanding you...your referring to HTML Input boxes...correct?

    Thanks,
    Blake

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Formatting an ASP form?

    First, you should be posting to the ASP.Net forum.

    All ASP.NET controls generate one or more HTML elements. An ASP.Textbox generates an HTML Input element <input type="text">. The ASP.Label can generate an HTML Span or Label element.

    Regardless, is the problem with the VWD Designer (when dragging and dropping controls onto a web page - like you would drag controls onto a VB Form) or is the problem with the final output, when you run the page.

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Formatting an ASP form?

    Thread moved to 'ASP.Net' forum

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Formatting an ASP form?

    You should really read up on CSS, DIVs and designing pages - having a little knowledge about HTML and CSS for layouts can help you a long, long way.

    www.w3schools.com is a good resource for this.

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Jan 2004
    Location
    Southern California
    Posts
    5,034

    Re: Formatting an ASP form?

    Thanks mendhak...I'll check out some tutorials!
    Blake

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width