CSS edit problem
Permalink
Howdy,
I'm new to C5 but have grasped the options pretty quicky. I was in the process of editing a css file to change a font for the page I'm editing.
When i uploaded the new style sheet via FTP to our server, the page lost alot of its elements.
Only 1 line of code was changed, literally just a font-face code. When I uploaded the css file to the server and viewed the source, it appears that each "img src" code more stuff attached to it.
Such as:
"http://www.servername.com/themes/templatename/http://www.servername.com/themes/templatename/images/bg.jpg"
when it should just be:
"http://www.servername.com/themes/templatename/images/bg.jpg"
Any idea what causes this? or better yet how to fix it?
I'm new to C5 but have grasped the options pretty quicky. I was in the process of editing a css file to change a font for the page I'm editing.
When i uploaded the new style sheet via FTP to our server, the page lost alot of its elements.
Only 1 line of code was changed, literally just a font-face code. When I uploaded the css file to the server and viewed the source, it appears that each "img src" code more stuff attached to it.
Such as:
"http://www.servername.com/themes/templatename/http://www.servername.com/themes/templatename/images/bg.jpg"
when it should just be:
"http://www.servername.com/themes/templatename/images/bg.jpg"
Any idea what causes this? or better yet how to fix it?
Hi,
If the url that point to the image in your css is something like this:
url(../img/yourimages.jpg)
try that:
url(img/yourimages.jpg)
I hope that helps you.
If the url that point to the image in your css is something like this:
url(../img/yourimages.jpg)
try that:
url(img/yourimages.jpg)
I hope that helps you.
Ahh looks like that fixed the problem. It appears when i upload the css file from FTP images automatically were appended with the server name. Appreciate it!
steve