html - Css With Master Page C# ASP.NET -
i'm trying add css master page not working when put contentplaceholder tag.
can explain me why happen?
<head runat="server"> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>xxx</title> <!--[if lt ie 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <asp:contentplaceholder id="head" runat="server"> <link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="styles/bootstrap-theme.min.css" type="text/css" /> <script type="text/javascript" src="javascript/jquery-1.11.3.min.js"></script> <script type="text/javascript" src="javascript/bootstrap.min.js"></script> </asp:contentplaceholder> </head>
when use not working style.css, bootstrap working fine. when put (style.css) out of contentplaceholder, work's fine.
why?
css file
footer { background-color:black; }
footer body
<footer> <div class="row"> <div class="col-md-4"> <h5> mapa site</h5> <ul> <li><a href="">home</a></li> <li><a href="">anuncie</a></li> <li><a href="">veĆculos anunciados</a></li> <li><a href="">quem somos</a></li> <li><a href="">contato</a></li> </ul> </div> <div class="col-md-4"> </div> <div class="col-md-4"> </div> </div> <div class="row"> <div class="col-md-12"> <p> xxx 2015. todos os direitos reservados.</p> </div> </div> </footer>
this not perfect solution try...
footer { background-color:black !important; }
Comments
Post a Comment