Reference background-image in CSS - application MVC 3 ASP.NET in IIS
asp.net-mvc-3, css, layout
Solution
Use a relative path. Partial `urls` are resolved relative to the style sheet:
background-image: url(images/Bottom_texture.jpg);
Problem
I have an application hosted in IIS But not working the background-image from CSS file The css is referenced from the layout with: ``` <link href="@Url.Content("~/Content/themes/NewStyleSUPERADMIN/style.css")" rel="stylesheet" type="text/css" /> ``` in the style.css, I have: ``` background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg'); ``` or ``` background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg'); ``` How do I display the image?