# Custom Icons

This help article shows how to use custom icons (images or font icons) in **RadLinkButton**.

* [Image Icons](https://www.telerik.com/products/aspnet-ajax/documentation/controls/linkbutton/functionality/icons/custom-icons#image-icons)

* [Font Icons](https://www.telerik.com/products/aspnet-ajax/documentation/controls/linkbutton/functionality/icons/custom-icons#font-icons)

## Image Icons

To display an image icon on the button, you need to set the **Icon.Url** property to point to the URL of the desired image.

> caption Figure 1: RadLinkButton with custom icon set through the **Icon.Url** property.

![Icons](https://www.telerik.com/products/aspnet-ajax/documentation/assets/2c0083993b2e1b62e618ae2916ed12f8/button-custom-icon-url.png)

> caption Example 1: Configure a **RadLinkButton** with an icon through the **Icon.Url** property.

```ASP.NET
<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Button With Custom Image Icon" NavigateUrl="https://www.telerik.com" Target="_blank">
	<Icon Url="https://demos.telerik.com/aspnet-ajax/button/examples/customicons/images/eFind.png" Top="5" Left="8" />
</telerik:RadLinkButton>
```

### Hovered and Active States

**RadLinkButton** also provides an easy way to show different icon when the mouse is over the control, or the button is pressed (see **Figure 2** and **Example 2**). To do this, use the **HoveredCssClass** and **PressedCssClass** properties exposed by the **Icon** tag.

> caption Figure 2: A RadLinkButton can have different icons for its normal, hovered and active state.

![RadLinkButton icons normal hovered pressed](https://www.telerik.com/products/aspnet-ajax/documentation/assets/9708a55a11dca5aa92ec9edbf49e04e6/button_icons_normal_hovered_pressed.png)

**Example 2:** Setup unique icons for the normal, hovered and active state of a **RadLinkButton**.

```ASP.NET
<telerik:RadLinkButton ID="RadLinkButton1" runat="server" Text="Normal Hover Active State Icons" NavigateUrl="https://www.telerik.com" Target="_blank">
	<Icon Url="https://demos.telerik.com/aspnet-ajax/button/examples/customicons/images/ePlayer.png"
		HoveredUrl="https://demos.telerik.com/aspnet-ajax/button/examples/customicons/images/eFlash.png"
		PressedUrl="https://demos.telerik.com/aspnet-ajax/button/examples/customicons/images/eTime.png" />
</telerik:RadLinkButton>
```

## Font Icons

You can use custom font icons in **RadLinkButton** as well. To do that, follow the steps below:

1. Load the stylesheet with the desired font icons on the page.

   ```CSS
   <link rel="stylesheet" href="myCustomFontStyleSheet.css" />
   ```

2. Override the font-family of the button's icon element with the target one (see **Example 3**).

   ```CSS
   button.RadButton .rbIcon:before {
   	font-family: myCustomFont;
   }
   ```

3. Set the custom font icon class to the **Icon.CssClass** property.

   ```ASP.NET
   <telerik:RadLinkButton ID="RadButton1" runat="server" Text="Button With Custom Font Icon" NavigateUrl="https://www.telerik.com" Target="_blank">
   	<Icon CssClass="myCustomFontIconClass" />
   </telerik:RadLinkButton>
   ```

You can find below an example with [Font Awesome Icons](https://github.com/FortAwesome/Font-Awesome).

> caption Figure 3: RadLinkButton with Font Awesome icon.

![Button Custon Icon CssClass](https://www.telerik.com/products/aspnet-ajax/documentation/assets/bb063f44e2cfc83d2e78d8a2be88c4f6/button-custom-icon-cssclass.png)

**Example 3:** Using FontAwesome font icons in RadLinkButton.

```CSS
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" />
<style>
	button.RadButton.fa .rbIcon:before {
		font-family: FontAwesome;
	}
</style>
```

```ASP.NET
<telerik:RadLinkButton ID="RadButton1" runat="server" Text="Button With Custom Font Icon" CssClass="fa" NavigateUrl="https://www.telerik.com" Target="_blank">
	<Icon CssClass="fa-bed" />
</telerik:RadLinkButton>
```

You can also change the font-size and color of the font icon as described in the [Fine Tune](https://www.telerik.com/products/aspnet-ajax/documentation/controls/linkbutton/functionality/icons/fine-tune) help article.

Find out more information on how to use Font Awesome icons along with Telerik controls in the [4 Ways to Embed Font Awesome in Telerik UI for ASP.NET AJAX Controls](https://www.telerik.com/blogs/4-ways-embed-font-awesome-telerik-ui-for-asp-dotnet-ajax) blog post.

## See Also

* [PushButton - Custom Icons Demo](https://demos.telerik.com/aspnet-ajax/linkbutton/functionality/custom-icons/defaultcs.aspx)

* [Font Awesome Icons](https://github.com/FortAwesome/Font-Awesome)

* [PushButton - Embedded Icons Demo](https://demos.telerik.com/aspnet-ajax/linkbutton/functionality/embedded-icons/defaultcs.aspx)

* [Icons Overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/linkbutton/functionality/icons/embedded-icons)

* [Fine Tune Icons Position, Size and Color](https://www.telerik.com/products/aspnet-ajax/documentation/controls/linkbutton/functionality/icons/fine-tune)
