background-image

liunx

Guest
Another no doubt simple problem that I can't work out.

I've written a simple site using tables and thought I'd have a go with CSS instead. I am using an external style sheet coz I've got a number of pages all with the same basic format.

As you'll see I've not got far before running into difficulty!

I've got a jpeg file I want to use as a background. When I refer to it in the HTML pages it works fine but when I referr to it in the CSS file it seems to ignore it.

CSS is below.

What am I doing wrong.

Thanks


body

{
background-image:back1.jpg;

color:#FFD700;

}

a:link
{font-weight:bold;
font-size:15;

color:#5C246E}

a:visited
{font-weight:bold;
font-size:15;

color:#CD1076}

a:active
{font-weight:bold;
font-size:15;

color:#ff0000;

}I think it needs to be:

body
{
background-image:url (back1.jpg);
color:#FFD700;
}You're a genius!!!

Progress at last.

Thanks for solving in 2 minutes what I've been struggling with for half an hour.Glad to help. Good luck.
 
Back
Top