How to apply CSS style to ASP.NET label within a panel control
Posted on 2011-09-20
I'm trying to apply a style that's defined in an external CSS file to an ASP.NET label control that is within a panel control. Given the layout of this panel I need to apply the style directly to each control but can't get style to work with the label control. I've tried various ways including assigning an ID to the control and creating a style for the ID. I've tried defining the style as a class as well with no success. The only way I've been able to apply the style is by specifying my container name and then applying the style to the span element eg.
but this is not what I want because it applies to all the label controls. Is what I'm trying to do possible?