New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Customize RadLabel appearance

Environment

ProductTheme Builder for ASP.NET AJAX

Description

See how to change the appearance of the Label control.

Solution

You can easily style the label component using the technique shown in this blog post:

For example by overriding the following class you will be able to apply your own font color, border and padding to the rendered label control:

ASP.NET
<style>
    label.RadLabel {
        padding-right: 150px;
        padding-top: 15 px;
        border: 1px solid red;
        color: blue;
        font-size: 20px;
        height:31px;
    }
</style>
<telerik:RadLabel runat="server" ID="RadLabel1" AssociatedControlID="RadTextBox1" Text="Name"></telerik:RadLabel>
<telerik:RadTextBox RenderMode="Lightweight" runat="server" ID="RadTextBox1"></telerik:RadTextBox><br />
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support