0

Here i am using master page with three content page.I am trying to add background image in my master page content,its working fine in design time.while running my page the image doesn't appears.

Here is my css class code

    .Content
    {
        width: 101%;
        height: 600px;
        background-color:White;
        background-image:url('images/image.jpg');
        background-repeat: no-repeat;
        overflow:hidden;
    } 
3
  • url('images/image.jpg'). Fiddle plase Commented Jul 23, 2014 at 6:13
  • 3
    Try background-image:url(../images/image.jpg); Commented Jul 23, 2014 at 6:14
  • 1
    @user3494471: are you uploaded images/image.jpg to server? Is images folder in the same directory as your stylesheet is? Commented Jul 23, 2014 at 6:16

1 Answer 1

1

Like Kartikeya and Neophyte said in the comments, this case might just be about the incorrect path you've set your background image to be searched for.

Try the

background-image: url(../images/image.jpg);

or place your image to the same folder where your html file is located, then try it. This way you can at least figure out if it's the path that's wrong here.

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

Comments

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.