asp.net mvc - Fontawesome doesn't work in Html.Raw() -


fontawesome not works in html.raw() function in mvc razor view. whats solution that?

@html.raw("<i class=\"fa fa - clock - o\" aria-hidden=\"true\"></i>:"); 

when written code on visual studio automatically few wrong space might applied that's why problem cause. try replacing code bellow think should working.

correct format is-

class=\"fa fa-clock-o\"

not

class=\"fa fa - clock - o\"

@html.raw("<i class=\"fa fa-clock-o\" aria-hidden=\"true\"></i>:"); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -