Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7918501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:32:03+00:00 2026-06-03T15:32:03+00:00

I have MVC 3 application. In one of div’s I set background-image. #wrapper {

  • 0

I have MVC 3 application.
In one of div’s I set background-image.

#wrapper {
width: 960px;
margin: 0px auto;
background: url(../../Content/images/img01.jpg) no-repeat center top;
}

In _Layout.cshtml I write this:

<div class="wrapper">
  <!-- Some Items -->
</div>

But image is not showed. If I write this:

<img src="../../Content/images/img01.jpg"/>

Html-page show this image correct.

Why this image is not setted on backgroun of div?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:32:04+00:00Added an answer on June 3, 2026 at 3:32 pm

    wrapper is a class.

    You have defined the CSS as # which is an ID

    EDIT:

    Just so it makes sense your code must be:

    #wrapper {
       width: 960px;
       margin: 0px auto;
       background: url(../../Content/images/img01.jpg) no-repeat center top;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC application that has one part where I dont really
I am working with an ASP.NET MVC application. I have one master page having
I have one question; In my ASP.NET MVC web application have to do certain
I have an MVC application which has a set of fields for contact details
Is it possible to have one MVC application that references / hosts more than
I have an ASP.Net-MVC application that is mostly complete. However, I have one page
I have written an ASP.NET MVC application that runs inside an IFrame. When one
I have developed a set of apis that live on an asp.net mvc application,
I have an MVC application and i'm trying to make one of the views
For my first ASP.NET MVC 3 application I have a div on a partial

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.