Page 1 of 1

How to attach images to my template?

Posted: Wed Mar 25, 2009 7:47 pm
by jshotz
I got this in my css

background:url(picture.jpg);

how do I know where to upload my background image so the stylesheets relates to it properly?

Re: How to attach images to my template?

Posted: Wed Mar 25, 2009 8:10 pm
by CWebguy
You can upload anywhere you want, just make sure to use an absolute path

that is http://www.yoursite.com/img/image2.jpg

or if you are using it relative to where the stylesheet is it needs to be in the same folder as the stylesheet (as in the example you have).

Re: How to attach images to my template?

Posted: Wed Mar 25, 2009 8:22 pm
by jshotz
Thanks!

Re: How to attach images to my template?

Posted: Wed Mar 25, 2009 8:22 pm
by Dr.CSS
Uh if you have the {metadata} tag in your template then in the css you can use url(uploads/images/image.jpg) or whatever your path is and you won't need an absolute path...

Me, I use a folder in uploads to hold all the images used in the template design like uploads/templatename so path would be url(uploads/templatefolder/image.jpg) so they aren't available to the editor in pages, these would be in uploads/images, please don't use root/images as this is mostly for the admin images not like a flat file site where you would use this type of structure...