trouble getting tiled background image

They have: 2 posts

Joined: Jan 2006

Hello..for some reason my .css file will not load a tiled image into my home page..here is the file...I commented out the background color because I just want to see what the image looks like first..is my syntax wrong?..argg!!..thanks.

-Kevin

h1,h2,h3{color:#412700;font-family:"Verdana",'sans-serif';}
p{color:#8c5900; font-size:120%;font-family:"Helvetica",'sans-serif';}
a:link{color:#8C5900;}
a:visited{color:#005073;}
a:hover{color:#412700;}
/*body{background:#acacac;}*/
body{file:///c|/Documents and

Settings\Kevin\Desktop\Website\images(background:cat10.jpg) repeat}

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Yes, the synax is wrong. Firstly, you don't want to be pointing to something on your C drive. Then when you upload the site it won't be able to find the image.

The CSS rule should look something like this:

body {background: url('images/cat10.jpg') repeat;}

You shoudl also check those quotes in the font rules - I don't think the double quotes are proper form in CSS. You shouldn't need to quote font families anyway, the comma is enough to separate them properly.

Here's a reference: http://www.w3schools.com/css/css_background.asp

demonhale's picture

He has: 3,278 posts

Joined: May 2005

or use on your div something like
Content

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.