title: Use Custom CSS in Visual Web Part in Sharepoint 2010
body: <p>I am trying to use custom CSS in a Visual Web Part. CSS file is in
  Style library like </p>
  
  <p><code>http://mysite:7/Style%20Library/SnehamCss.css</code></p>
  
  <p>Now in Visual Web Part I am trying to register this using</p>
  
  <blockquote>
    <p><code>&lt;SharePoint:CssRegistration Name="/Style Library/SnehamCss.css"
    runat="server"&gt;&lt;/SharePoint:CssRegistration&gt;,</code> </p>
  </blockquote>
  
  <p>At the end Visual Web
  part isn't rendering using the css defined in file. I have tried to
  follow many blogs but its not helping.</p>