How can I add the css to my project asp.net mvc? [closed]


Tags: html,css,asp.net,asp.net-mvc,visual-studio-2013

Problem :

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.



Solution :

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.


    CSS Howto..

    How to fix animation problems css3

    CSS only: how to make a div the width of its biggest row, with children as inline-blocks?

    Using CSS, how can I make my document expand to the user's viewport if the content doesn't scroll?

    Css radio buttons problem - How to style each radio button?

    how to trace this computed CSS value in firefox inspector?

    Need help determining how to position this element with CSS

    How to position an inner - inner tag at different position?

    How to tell google bot to skip part of HTML?

    HTML/CSS Fluid Grid: How to overlay div to another div

    How to scroll a fixed div when I resize the browser window

    How to force child element adherence to `flex: nowrap;` CSS directives

    How to convert this xpath to css?

    How do I center a set of JQuery Mobile radio buttons in the viewport?

    How to cut divs both ways to keep the objects in center?

    how to use the CSS contains-element selector with input elements?

    How to get rid of hidden space HTML/CSS [closed]

    How to make
    , , or list display tabular data as a table?

    How to build a hover effect with css only, or css+jquery

    how to adjust width of first cell of a table using CSS

    Google Share button not showing properly if originaly hidden

    How to hide elements in mobile devices? CSS

    How to reset css (a:visited{color:green}) when refresh browser address bar

    How do I do this CSS border-bottom

    css: how to build centered div with minimum spacing on the left

    How to make a “Fixed” element Scrollable

    How to target the chrome browser for Mac only?

    How to enable CSS editor features in VS 2012?

    How to get 2 fixed and 1 dynamic column in CSS

    How to adjust CSS settings for jquery.simply-scroll plugin to occupy full screen

    How to give line-break from css, without using
    ?