How can I add the css to my project asp.net mvc? [closed]
I'm making a project Asp.net mvc and I found a free css template and I trying to add to my project but I don't get successful Result.
In the folder "Content" I have the files css.
In the forder "View/Shared" I have a _Layout.cshtml with this code in the head
<link href="@Url.Content("~/Content/css/Site.css")" rel="stylesheet" type="text/css">
but it doesn't work for me.
This is how you can add a new css file in your _Layout.cshtml view.
<head> ... <link href="@Url.Content("~/Content/CSSFileName.css")" rel="stylesheet"> </head>
You probably need to see if the .css file you're using matches the classes you have in your existing project.