I'm seeking msdn forum support for a situation where a control on the master page goes hidden when I use a css style. I think I may need to review the proper setup to use theming. Here are the specifics:
in web.config I use the line <pages theme="rosy" /> and in the App_themes \ rosy folder I have a file called screen.css with an entry for the .path style (a very simple style).
In the masterpage I include the stylesheet that has the theme, and for testing I use the .path style on a label control.
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" EnableTheming="true" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>Untitled Page</title><asp:ContentPlaceHolder id="head" runat="server"></asp:ContentPlaceHolder><link runat="server" href="./App_Themes/rosy/screen.css" media="screen" rel="Stylesheet" /></head> <body class="page"><form id="form1" runat="server" ><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager><div class = "pageheader" >dbd</div><asp:Label ID="Label2" runat="server" Text="test2" CssClass="path"></asp:Label>
when I compile the web page the label2 control is hidden if I apply the path style, but it appears if I remove this.
Can you please help me to troubleshoot why this style is causing the control to be hidden. Is something wrong with the way I am setting up the use of themes or styles?