troubleshooting Question

Help with setting form's background color and position table at center of form

Avatar of vcharles
vcharles asked on
10 Comments1 Solution319 ViewsLast Modified:

I am using a table within my form, is there a way to set the background color of the form and to position the table at the center of the form from the maintable tag? I am using ASP.NET. Also how do you use an image as a backgroung image of the form?
html xmlns="">
<head runat="server">
    <br />
    <br />
    <br />
<br />
    <style type="text/css">
        * {margin:0 auto 0 0px;
            text-align: center;
        .mainTable { height:1500;border:solid 1px red;width:1100px;background-color:Teal}
<form id="form1" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server" />
         <table cellpadding="0" cellspacing="0" class="mainTable">



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros