expression with font awesome

2 posts, 0 answers
  1. Stefania
    Stefania avatar
    107 posts
    Member since:
    May 2013

    Posted 23 Feb Link to this post

    Hi,

    is it possible to use font-awesome and css inside a text expression?

    something like

    <i class='fa fa-alarm-icon icon-red'></i>

    where fa-alarm-icon and icon-red are declared on my style.css

    *.icon-red {color: red; font-size: 1.3em;}

    .fa-alarm-icon{position:relative;}
    .fa-alarm-icon:before {content:"\f12a";}

     

    Thank you

  2. Stef
    Admin
    Stef avatar
    3044 posts

    Posted 25 Feb Link to this post

    Hello Stefania,

    Telerik Reports are processed and rendered on the server in the selected format, where HTML input can be displayed via HtmlTextBox item. Please check the list of the supported HTML tags and CSS attributes (which does not include font awesome elements).
    In general, all items are processed and rendered by Telerik Reporting mechanism and the original HTML of an HtmlTextBox is not placed directly in the final document.

    Instead you can use an image as an item's background image or a PictureBox.Value.


    Let us know if you have any further questions.

    Regards,
    Stef
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
Back to Top