asp.net - Master Page Contents aren't Same in All pages -
i use master page in project.but master page contents not same in pages.in home.aspx page it's margin 0px , in other page isn't. texts bold , big size in 1 page , small in page. why occur?
my master.master page code :
<body style="margin:0px; text-align: left;"> <form id="form1" runat="server"> <div>     <div class="auto-style1" style="background-color: #3399ff; height: 42px;">         <h2>             <a href ="home.aspx"><asp:label id="homelabel" runat="server" text="home"></asp:label></a>             <a href ="members.aspx" ><asp:label id="memberlabel" runat="server" text="members"></asp:label></a>             <a href ="shared_files.aspx"><asp:label id="file_sharedlabel" runat="server" text="files shared"></asp:label></a>             <a href ="blogs.aspx"> <asp:label id="bloglabel" runat="server" text="blogs"></asp:label></a>         </h2>      </div>     <asp:contentplaceholder id="contentplaceholder1" runat="server">      </asp:contentplaceholder>  </div> </form>     and 2 picture of home.aspx , members.aspx

 happens don't catch . 
again, hard tell going on without actual html child pages.  however, judging picture, looking margin value on element between <asp:contentplaceholder> tags.
it looks second page using <table> of sort.
make sure table has:
style="margin-top: 0px;"   or
<table class="notopmargin"> ...  <style> .notopmargin { margin-top: 0px; } </style>   as font-size , font-weight being messed up, possible second page has <style> declaration somewhere screwing up.  make sure browser zoom same between both pages.
Comments
Post a Comment