1

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?

1 Answer 1

3

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?

Sign up to request clarification or add additional context in comments.

4 Comments

well the path to the content is the same as the default content, and when the application loads, the default styling is there still, even though the default css has been removed...........?
What do you mean by, "default styling is there still, even though the default css has been removed"?
The default page style that comes when you create a new MVC application in visual studio. i.e. The headers are still styled how they are when you create a new MVC web app, even though i have deleted the css from the file.
Have you tried ctrl+f5 to force refresh your browser. It may still have a cached version of the old css

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.