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,
Printable View
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,
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.
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,
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.
Thread moved to 'ASP.Net' forum
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.
Thanks mendhak...I'll check out some tutorials!