views:

439

answers:

3

Hey guys, I'm having the weirdest problem. I created an app in .NET and everything worked fine style wise. Now that I have redone the app Rails i'm having an issue with the background image not showing up.
My CSS file looks like this..

body{
  background: url('/images/top-bkrnd.jpg') repeat x ;
  text-align:center;
  color:#fff;
}

But whenever I load the page I get no image??? This is so wild and I'm getting to my wits end playing around with how to call it. I thought the path was correct because other images are are showing up. This file is the "/public/index.html/"... Any ideas where I getting this wrong at?

A: 

use firebug to ensure that the background url is correct. Use the net tab of firebug

Larry K
+2  A: 

Typo in your css code? Remember the hyphen! Should be:

background: url('/images/top-bkrnd.jpg') repeat-x ;
ghoppe
A: 

Your code shows repeat x (with a space), and I'm pretty sure it should be repeat-x (with a hyphen).

Pointy