Add custom css in razor view

Total Post:2

Points:14
ASP.Net  Mvc  Mvc4 
C#
 428  View(s)
Ratings:
Rate this:

Hi Expert,

I am new in mvc razor view, I want to add custom css in my razor view. Please give me some idea to add custom css in razor view.

Here is my code:

<div class="card-body">

        <div class="card-body-icon">
          <i class="fa fa-fw fa-user"></i>
        </div>
    <div class="mr-5">200 Pending Candidates!</div>
</div>




  1. Post:44

    Points:310
    Re: Add custom css in razor view

    Hi JULES BOUTIN,

    Please follow below line of codes for add custom css in your razor view.

    <style>
    
        .fontSize {
            font-size: 25px;
            font-weight: bold;
        }
    </style>


Answer