New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Fine-tune Icons

This help article shows how to modify the position, size and color of icons in RadLinkButton.

Fine-tune Position

You can change the position of font or image icons to match your concrete requirements. To do this, use the Icon.Top and Icon.Left properties to directly offset the icon (Example 1).

Figure 1: The icon in RadLinkButton can be offset from its original top and left position. See Example 1.

RadLinkButton Icon Top Left

Example 1: Offset RadLinkButton Icon from the top and left. You can see the result in Figure 1.

<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Fine Tune Icon Position" Height="40px" NavigateUrl="" Target="_blank">
    <Icon CssClass="rbRefresh"
        Top="12px" Left="7px" />

Configure Font-size and Color

The embedded RadLinkButton icons are font icons. Using a font facilitates the customization of the icons. For example, you can change the icons color and font size with a single line of CSS (see Figure 2 and Example 2).

Figure 2: Customize the font size and color of the embedded icons of RadLinkButton with CSS.

Button Icon Customized

Example 2: Use CSS to modify the font size and color of the embedded icons in RadLinkButton.

<style type="text/css">
    button.RadButton.customizeIcon .rbPrimaryIcon:before {
        color: red;
        font-size: 17px;
<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Icon Custom Size and Color" CssClass="customizeIcon" NavigateUrl="" Target="_blank">
    <Icon CssClass="rbSave" />

This also applies for custom font icons.

See Also

In this article