Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Image paths not working in Sub Domain CSS
Old 06-27-2009, 12:51 PM Image paths not working in Sub Domain CSS
daveyboy's Avatar
Novice Talker

Posts: 3
Name: David
Trades: 0
Hi All,

I am going stir crazy trying to work out what is going on with my Sub Domain CSS.

I have a base domain with a css at root and image folder at root containing my image files for the base domain:
(the web address' used are fictional but the paths are true)

www.website.co.uk (/public_html/)
www.website.co.uk/images/ (/public_html/images/)

The css file sitting at /public_html/css.css)

Background images referenced in this css file work on this base domain.

how css.css references images-
background-image: url(images/bckground.jpg);


However, my issue is I also have the following.

www.subdomain.website.co.uk (/public_html/subs/demo/)
www.subdomain.website.co.uk/images/(public_html/subs/demo/images/)

The css file for the sub domain sitting at /public_html/subs/demo/sub.css

I can't get the background images for this subdomain working at all.

Currently the sub.css references the images as below but I have tried many different variations-
background-image: url(images/bckground.jpg);


Any help may just stop me going insane

"I think I posted half a post before this one by pressing the space bar after accidently tabbing out of the test box so - Sorry for that "

Last edited by daveyboy; 06-28-2009 at 08:44 AM..
daveyboy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2009, 04:10 PM Re: Image paths not working in Sub Domain CSS
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
I can't get the background images for this subdomain working at all.
Because with a sub-domain, you're going to have to specify the fully qualified path to the CSS.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-29-2009, 04:13 PM Re: Image paths not working in Sub Domain CSS
daveyboy's Avatar
Novice Talker

Posts: 3
Name: David
Trades: 0
I don't have a problem referencing the style sheet.

All other formatting from the style sheet works.

It's only the images that are referenced in the style sheet that I can't get working.
daveyboy is offline
Reply With Quote
View Public Profile
 
Old 07-03-2009, 11:34 AM Re: Image paths not working in Sub Domain CSS
daveyboy's Avatar
Novice Talker

Posts: 3
Name: David
Trades: 0
I'm still looking for help.......anyone?????
daveyboy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image paths not working in Sub Domain CSS
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29935 seconds with 12 queries