One issue with paths - I'm just curious...

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
Sponsi

One issue with paths - I'm just curious...

Post by Sponsi »

Is there a way to have internal links in CSS styles for images?
From edition I guess 1.8 instead of

Code: Select all

blabla url(uploads/images/background.jpg)
I have to give the full path

Code: Select all

url(http://mysite.tld/uploads/images/background.jpg)
why is it so?


Thanks in advance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: One issue with paths - I'm just curious...

Post by Dr.CSS »

First way, url(uploads/path/image.jpg) is when using {stylesheet}...

Second way, {cms_stylesheet} needs (/uploads... or ([[root_url]]/uploads...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: One issue with paths - I'm just curious...

Post by Wishbone »

or [[uploads_url]]/images
Sponsi

Re: One issue with paths - I'm just curious...

Post by Sponsi »

Dr.CSS in fact, it doesn't work with "/"... but it works without it.
I'll use {stylesheet} then.
I didn't know the co-relation of the settings.
That's much better now - especially when moving a site : )

Thanks people.
Last edited by Sponsi on Thu Dec 16, 2010 4:00 pm, edited 1 time in total.
Locked

Return to “Layout and Design (CSS & HTML)”