title: Multiple CSS classes in an html element ASP.NET MVC 3
body: <p>I know it is possible to have multiple CSS classes in an element, but I was wondering if it was possible to select which class to use by using a razor if statement? </p>
  
  <p>So something like this (pseudo code)</p>
  
  <pre><code>&lt;div @if( num items in Model ==0){
           class="Error";
         } else
          class ="home"; &gt;
  </code></pre>
  
  <p>I would think that this would be possible, if anyone has some ideas I would appreciate their help!</p>
  
  <p>Thanks in advance</p>