Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 11-19-2006, 12:29 AM   #1 (permalink)
 
Ultra Techie

Join Date: Jun 2004

Posts: 670

Raekwon

Default CSS not working?

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.
__________________
<img src=\"http://i25.photobucket.com/albums/c62/HAVOC2k5/Sempron_Userbar.png\">
Raekwon is offline  
Old 11-19-2006, 01:40 AM   #2 (permalink)
 
Super Techie

Join Date: Oct 2006

Posts: 263

penfold

Default Re: CSS not working?

Quote:
Originally posted by Raekwon


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.
__________________
---
penfold

www.futurelooks.com/
www.megatechnews.com
penfold is offline  
Old 11-19-2006, 02:17 AM   #3 (permalink)
 
Ultra Techie

Join Date: Jun 2004

Posts: 670

Raekwon

Default

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
__________________
<img src=\"http://i25.photobucket.com/albums/c62/HAVOC2k5/Sempron_Userbar.png\">
Raekwon is offline  
Old 11-19-2006, 04:15 AM   #4 (permalink)
 
Ultra Techie

Join Date: Jun 2004

Posts: 670

Raekwon

Default

ah dw, I made a class for each band page and that seems to work perfectly.

thanks for the help though penfold
__________________
<img src=\"http://i25.photobucket.com/albums/c62/HAVOC2k5/Sempron_Userbar.png\">
Raekwon is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On