Doesn't Visual Web Developer 10 allow background images?

dennisvb

Member
Joined
Nov 19, 2009
Messages
10
Programming Experience
10+
I admit I'm a newbie to this but this should be so simple but nothing works.

I have created an Images folder in my Web page folder.

There is a bitmap called Baseball1.jpg in it.

I have tried <Body Background="/Images/Baseball1.jpg">

Nothing

I tried:
<head>
<style type="text/css">
body {background-image:url(\Images\Baseball1.jpg');}
</style>
</head>

Nada

So I tried putting;
background: url(\Images\Baseball1.jpg');}

Nothing

I know I'm doing something wrong, but what?
 
Last edited:
In VWD select Design view, select the background of the page (or the DOCUMENT element in Properties window), in Properties window select Background property and use the [...] file browser to select the image from the image folder. Now if you switch to Source view you could see something like this:
HTML:
<body background="Images/Baseball1.jpg">
This url is a client side relative url.
 
Back
Top