title: Css With Master Page C# ASP.NET
body: <p>I'm trying to add a css into my master page but not working when i put it into contentplaceholder tag.</p>
  
  <p>Can someone explain me why it happen?</p>
  
  <pre><code>&lt;head runat="server"&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;title&gt;XXX&lt;/title&gt;
  &lt;!--[if lt IE 9]&gt;
      &lt;script src="http://html5shim.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
  &lt;![endif]--&gt;
  &lt;asp:ContentPlaceHolder ID="head" runat="server"&gt;
      &lt;link rel="Stylesheet" href="styles/style.css" type="text/css" /&gt;
      &lt;link rel="Stylesheet" href="styles/bootstrap.min.css" type="text/css" /&gt;
      &lt;link rel="Stylesheet" href="styles/bootstrap-theme.min.css" type="text/css" /&gt;
      &lt;script type="text/javascript" src="javascript/jquery-1.11.3.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="javascript/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/asp:ContentPlaceHolder&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>When i use like that it not working my style.css, bootstrap working fine.
  But when i put it (style.css) out  of my contentplaceholder, it work's fine.</p>
  
  <p>Why?</p>
  
  <p><strong>CSS FILE</strong></p>
  
  <pre><code>footer
  {
      background-color:Black;
  }
  </code></pre>
  
  <p><strong>FOOTER INTO BODY</strong></p>
  
  <pre><code>&lt;footer&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-4"&gt;
              &lt;h5&gt;
                  Mapa do Site&lt;/h5&gt;
              &lt;ul&gt;
                  &lt;li&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Anuncie&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Veículos Anunciados&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Quem Somos&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href=""&gt;Contato&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
          &lt;div class="col-md-4"&gt;
          &lt;/div&gt;
          &lt;div class="col-md-4"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-12"&gt;
              &lt;p&gt;
                  XXX 2015. Todos os direitos reservados.&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/footer&gt;
  </code></pre>