Well, if I do, it is hiding from me. I didn't change any of the
markup, yet on every single page, the content is centered.
The body of my master page:
<body bgcolor="#ececec" leftmargin="0" topmargin="0"
onbeforeunload="javascript: if (bDirty && !IgnoreDirty) return 'You
have not saved your changes.';">
<form id="form1" runat="server">
<uc1:header id="Header1"
runat="server"></uc1:header><uc1:navigation id="Navigation1"
runat="server"></uc1:navigation>
<table width="95%" height="550" border="0" align="center"
cellpadding="0" cellspacing="1" ID="Table8">
<tr>
<td valign = "top">
<asp:contentplaceholder id="cpMain" runat="server" >
</asp:contentplaceholder>
</td>
</tr>
</table>
<uc1:footer id="Footer1" runat="server"></uc1:footer>
</form>
</body>
Just as a note, I did try removing everything from inside the body tag
except for the contentplaceholder and got the same result. There is
nothing in the css file that dictates style for the body tag (or any
tag for that matter).
Part of the default.aspx page:
<%@ Register TagPrefix="uc1" TagName="PageHistory"
Src="Controls/PageHistory.ascx" %>
<%@ Page language="c#" Inherits="T._default" CodeFile="default.aspx.cs"
MasterPageFile="TMaster.master" Title="T"%>
<asp:Content ID="Content1" runat="Server"
ContentPlaceHolderID="cpMain">
<table class="arrowBackground" id="Table11" height="550"
cellSpacing="0" cellPadding="0" Width="100%" bgColor="#ffffff"
border="0">
<tr>
<td width="20%" colSpan="3" style="height: 14px"></td>
</tr>
<tr>
<td vAlign="top" align="center" width="95%">
<asp:loginview runat="server"
id="LoginView1"><LoggedInTemplate>
<!-- BEGIN CONTENT AREA -->
<TABLE id="Table9" height=25
cellSpacing=0 cellPadding=0 width="75%" border=0
background="images/pageTitleTile25.gif">
<TBODY>
<TR>
<TD
align=left><uc1
agehistory id="PageHistory" runat="server"
Initialize="True" Visible="True" Text="Main"></uc1
agehistory> </TD>
Removing the "center" align from the td tag above just left alignes the
cell. The content is still centered. Even tho the TD tag for the
pagehistory control is left justified, the pagehistory control is
centered when rendered.
css for "arrowBackround"
.arrowBackground {
background-image: url(images/backgroundArrow.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center bottom;
}
I'm at a loss.
Jason