I'm a newbie in ASP.NET MVC. I'm trying to make a decent site, and I've encountered a stupid problem: I can't set the background to be a local image.
in Site.css, this works:
body {
padding-top: 50px;
padding-bottom: 20px;
background-image: url(http://wallpapercave.com/wp/zJj7EIt.jpg);
}
but I don't want the image be an URL.
I've tried the following things:
Number one:
body {
padding-top: 50px;
padding-bottom: 20px;
background-image:
url( C:\Users\alexh\Documents\GitHub\StupidASP.NET\StupidASP.NET\StupidASP.NET\Styles\Images\background.jpg)
}
Number two:
<body style="background-image:
url( C:\Users\alexh\Documents\GitHub\StupidASP.NET\StupidASP.NET\StupidASP.NET\Styles\Images\background.jpg)">
Number three(which is obsolete):
<body background="C:\Users\alexh\Documents\GitHub\StupidASP.NET\StupidASP.NET\StupidASP.NET\Styles\Images\background.jpg">
I must miss something related to resources, and not with properties. Do you have any solution or idea? Or an explication about what vs does.