• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

ASP.net using image as screen background for website

Hi. I am trying to use an image as the large background area around my ASP.net site
I inserted the line "background-image" in the Site.css file as shown below but the image doesn't show


/* DEFAULTS
----------------------------------------------------------*/

body  
{
    background: #001E00;
    background-image: "~/Resources/t.jpg"
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
}
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Robert SchuttSoftware EngineerCommented:
I'm not sure if the ~/... notation is supported in css, also some syntax problems, this does work:
background-image: url('/Resources/t.jpg');

Open in new window

0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks very much. worked well
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now