title: How to set html.displayfor() style attribute?
body: <p>I am working with ASP.NET MVC 4.0.And my problem is i am not getting a way to define a color of DisplayFor html attribute.</p>
  
  <p>I have a HTML.DispalyFor() which is generating dynamic checkboxes and i want to set its background color to gray.</p>
  
  <p>I have tried to do that by style property but i am not getting the result.I have try below thing :</p>
  
  <pre><code>new {@class="clsColor"}
  
  Style{
     .clsColor = "backgroundcolor:gray";
  }
  </code></pre>
  
  <p>Can any one help me out on this ?</p>