html - How CSS with Master Page and new content page with own css that should not override masterpage header and footer? -
i have asp.net 4.5 website uses master page. link css page used throughout site. added new page uses master page , page has it's own css content area cause used active reports viewer.
when go new page active reports viewer, it's css overriding css master page header , footer not want do.
any recommendations on allowing new css file affecting contentarea of new page.
unfortunately, can't limit scope of css content; applies entire page. can give different name class in stylesheet content page , assign header , footer sections. eg.
.contentpage-custom { background-color: red; } <asp:content id="content2" contentplaceholderid="contentplaceholder1" runat="server"> <header class="contentpage-custom"> content page </header> </asp:content>
Comments
Post a Comment