L
Leor Amikam
I want to use a css element and apply it to all labels on a page with the
"asp:label" tag.
I defined a CSS class:
..cls1
{
font-weight: bold;
color: royalblue;
font-family: Verdana;
}
and then can assign to the control using the CssClass property:
<asp:label id="Label1" style="Z-INDEX: 101; LEFT: 335px; POSITION: absolute;
TOP: 69px" runat="server"
CssClass="cls1" Height="42px" Width="210px">Label</asp:label>
However, this is a pain to have to manually assign to each label control. I
want to define one CSS element that maps to "asp:label"
and have it apply to all label controls w/o having to explicitly assign the
CssClass. Is there a way to do this?
Thanks!
Leor
"asp:label" tag.
I defined a CSS class:
..cls1
{
font-weight: bold;
color: royalblue;
font-family: Verdana;
}
and then can assign to the control using the CssClass property:
<asp:label id="Label1" style="Z-INDEX: 101; LEFT: 335px; POSITION: absolute;
TOP: 69px" runat="server"
CssClass="cls1" Height="42px" Width="210px">Label</asp:label>
However, this is a pain to have to manually assign to each label control. I
want to define one CSS element that maps to "asp:label"
and have it apply to all label controls w/o having to explicitly assign the
CssClass. Is there a way to do this?
Thanks!
Leor