Which font style setting? All of them or just a particular item? This works for me:
<%@ Page language="c#" AutoEventWireup="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>LblCssClass</title>
<style>
..TabText
{
font-weight: bold;
font-size: 16pt;
text-transform: uppercase;
color: white;
background-color: black;
font-family: Tahoma, Verdana, 'Times New Roman';
}
</style>
</head>
<body>
<form id="Form1" method="post" runat="server">
<asp:label id="Lbl" runat="server" cssclass="TabText">Hello</asp:label>
</form>
</body>
</html>
"Mervin Williams" <mw*******@innovasolutions.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am having a problem setting the CSSClass property of a my Label control.
I set CSSClass property, but its not taking the font style settings. Here
is my style:
.TabText
{
font-weight: bold;
font-size: 16pt;
text-transform: uppercase;
color: white;
font-family: Tahoma, Verdana, 'Times New Roman';
}