How can I use font awesome icon in asp.net Label?

时间:2019-03-06 11:37:04

标签: asp.net visual-studio-2008

When the asp:Label Text attribute have some value and there is a fa icon in it, only the icon is visible. I want both text and the icon to be visible.

<asp:Label ID="Label18" runat="server" Text="Company Status"><i class="fas fa-chevron-right "></i></asp:Label>

This code results into showing only the icon. How can I have the icon and the text side by side without removing it from Label tag.

0 个答案:

没有答案