I am currently developing a web application using ASP.net 2.0.
Within the main stylesheet, I have included the following:
BODY TR
{
background-color: #e5e4e4;
}
As I work on a specific page for the site, I encounter an:
<asp:TreeView>
Each line within the TreeView is displayed as a <table>, and each table contains a <tr> element that inherits the background color defined in the stylesheet. However, I do not want this to happen.
To achieve my desired white background, I adjust the properties of my <asp:TreeView> as follows:
ForeColor="black"
LeafNodeStyle-BackColor="white"
NodeStyle-BackColor="White"
ParentNodeStyle-BackColor="White"
RootNodeStyle-BackColor="White"
BackColor="White" BorderColor="White"
style="background-color:White;"
Most of the content now displays with a white background, but the <td> elements used for indentation still retain the unwanted background color.
Is there a way to style these particular <td> elements or override the existing stylesheet?
Thank you in advance.