CSS not working?

Status
Not open for further replies.

Raekwon

Daemon Poster
Messages
670
ok, so I've been building a site for myself, just a bit about some bands, and other interests of mine.

today I figured it'd be nice to have a picture relevant to each band hanging out in the background to the side of the main content. I went about it in the normal way, as I've seen it done before, with these tags:

Code:
body	        {background-image: url(../pics/opeth.gif);
		 background-position: left center;
		 background-repeat: no-repeat;
                 }

no luck. can anyone tell me why its not working? am I actually doing anything wrong?

I'm using an external stylesheet for most of the site, but these need to be page specific, so I'm using it in <style> </style> tags in the head.
 
Raekwon said:


Code:
body	        {background-image: url(../pics/opeth.gif);
		 background-position: left center;
		 background-repeat: no-repeat;
                 }


Did you make sure the picture was uploaded to the proper directory? And that the case matches?

I see nothing wrong in the code above.

Alternately, though, you could try using a specific link
url(http://mywebdomain.com/pics/opeth.gif);
instead of a relative one.
 
still no luck,

I'm hosting it from my computer, the links are all right, thats the first thing i checked cos often i make stupid mistakes like that.

I was thinking... maybe I could just use a specific body class for the band pages.

.opeth {bg stuff}

and use it in <body class="opeth">

But yeah, the problem remains that the css isn't working as it should, any idea at all why?

thanks for your help :)
 
ah dw, I made a class for each band page and that seems to work perfectly.

thanks for the help though penfold :)
 
Status
Not open for further replies.
Back
Top Bottom