Jam
Jam

Reputation: 339

Apply CSS to all page except one specific page

The title says it all. I have a Style.css that apply properties to every <Table> on every page. I have 1 SiteMap page, on which i don't want to apply CSS for <table>. I tried this as a directive:

@page :not(:last) { }

It didn't work, besides i had to apply on any specif page, not the last one.

Edited The table is auto-generating from XML file.

Edited SiteMap.aspx

<asp:SiteMapDataSource ID="SiteMapDataSource1" Runat="server" />

  <h3 id="Heading">SiteMap</h3>
  <br /><br />
  <asp:TreeView ID="TreeView1" Runat="Server" DataSourceID="SiteMapDataSource1"  >
  </asp:TreeView>

Upvotes: 1

Views: 1357

Answers (1)

DigitalDan
DigitalDan

Reputation: 2637

Change your CSS to exclude the generated TreeView table, e.g.

table:not(#TreeView1) { ... }

Upvotes: 2

Related Questions