I've got a css file that i want to use to style my ASP.Net MVC web application.
I've included it in the solution however it doesn't seem to be taking any effect.
Have I missed something?
I've got a css file that i want to use to style my ASP.Net MVC web application.
I've included it in the solution however it doesn't seem to be taking any effect.
Have I missed something?
Have you added a reference to it in the html or aspx page.
A reference must be added in the <head>
element of your document:
<link rel="stylesheet" type="text/css" media="all" href="../../Content/niceforms-default.css" />
Is this what you are asking, or did I take your question too literal?
When you create an MVC application a master page is created for you in
Views\Shared\Site.Master
you will need to add the stylesheet reference in there. You will probably find that the default stylesheet is also defined in that master page.