I am trying to center the layout in my master page so every other page on site render on the center. Right now , each page expands through the content place holder but doesn't look quite well
Thanks
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
<style type="text/css">
.style1
{
width: 100%;
height: 445px;
}
.style2
{
height: 21px;
color: #FFFFFF;
text-align: left;
font-size: x-small;
}
.style3
{
height: 21px;
}
.style4
{
height: 81px;
}
</style>
</head>
<body background="Images/main_background.jpg">
<form id="form1" runat="server">
<div id="MainDiv" align="center"
style="font-family: Arial, Helvetica, sans-serif; font-size: small; background-color: #FFFFFF">
<table class="style1" id="MainTable" align="center">
<tr>
<td id="HeaderTD" align="right" bgcolor="#0099CC" class="style3">
</td>
</tr>
<tr>
<td id="HeaderTD" align="right" class="style4">
<img alt="LogoJabil1" src="Images/logoJabil2.jpg"
style="width: 151px; height: 39px; float: left" /><asp:Menu ID="Menu1"
runat="server" Orientation="Horizontal" BackColor="#B5C7DE"
DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#284E98" StaticSubMenuIndent="10px">
<StaticSelectedStyle BackColor="#507CD1" />
<StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<DynamicHoverStyle BackColor="#284E98" ForeColor="White" />
<DynamicMenuStyle BackColor="#B5C7DE" />
<DynamicSelectedStyle BackColor="#507CD1" />
<DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
<StaticHoverStyle BackColor="#284E98" ForeColor="White" />
<Items>
<asp:MenuItem NavigateUrl="~/Main.aspx" Text="Home"
ToolTip="Click Here to return Home" Value="Home"></asp:MenuItem>
</Items>
</asp:Menu>
<br />
<br />
</td>
</tr>
<tr>
<td id="HeaderTD" bgcolor="#0099CC" class="style2">
Employee Management System</td>
</tr>
<tr>
<td id="MainBodyTD" align="center">
<br />
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
<p style="text-align: right">
</p>
<p>
</p>
<p>
</p>
<p>
<br />
</p>
</asp:ContentPlaceHolder>
<br />
<br />
</td>
</tr>
<tr>
<td id="FooterTD">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>