Cssclass

jonathan128

New Member
How is CssClass used? I assume that it is the name of the css class I've created? But where do I create it and how do I reference it?You have to provide a CSS file in the Web page with the control that contains a class named whatever it is that you're specifying in the CssClass property. For example, we could have:<BR><BR><html><BR><head><BR> <style><BR> .foo { color:red; background-color:black; font-weight:bold; }<BR> </style><BR></head><BR><body><BR> <asp:label CssClass="foo" runat="Server" Text="Hello, World!" /><BR></body><BR></html>
 
Back
Top