I am working on an application and am attempting to show the header image using @URL.Content from within the CSS sheet, like so
.jumbotron .header-image {
min-width:1024px;
min-height:267px;
background-image: url('@Url.Content("~/Content/images/header.png")');
the image is there but all I get is a square box where the header should be. I am displaying it simply enough
<div class="jumbotron">
<div class="jumbotron header-image"></div>
</div>
Where am I going wrong?
EDIT
@Jesse this is all of it:
.jumbotron {
text-align: center;
background-color: transparent;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f5f5f5), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */
background-image: -webkit-linear-gradient(top, #f5f5f5 0%,#e5e5e5 100%); /* Chrome 10+,Safari 5.1+ */
}
.jumbotron .btn {
font-size: 21px;
padding: 14px 24px;
}
.jumbotron .header-image {
min-width:1024px;
min-height:267px;
background-image: url('@Url.Content("~/Content/images/header.png")');
}
<div class="jumbotron">
<div class="jumbotron header-image"></div>
</div>
I cannot figure out why this isnt working, it looks correct