Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
my Image has an id of 1119. It's sitting under the media folder.
For example, I have tried
background-image: url('Media/menuarrow.gif');
background-image: url('Media/1119/menuarrow.gif');
I have also tried \media\268\menuearrow.gif which is a direct path to the file
any ideas anyone please :-)
Hi Darren
If you are using a link without beginning slash it's a relative link. Therefore that your css file is in the css folder it searches www.yourdomain.com/css/Media/1119/menuarrow.gif. Use instead correct relative urls or absolute urls
correct relative url: url("../Media/1119/menuarrow.gif")
absolute link: url("/Media/1119/menuarrow.gif")
hth, Thomas
thanks for that, think I was having a 'doh' moment, :-) . thanks for your help Thomas
LOL, it's like a monday, isn't it?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I reference images from my css?
Hi all,
my Image has an id of 1119. It's sitting under the media folder.
For example, I have tried
background-image: url('Media/menuarrow.gif');
background-image: url('Media/1119/menuarrow.gif');
I have also tried \media\268\menuearrow.gif which is a direct path to the file
any ideas anyone please :-)
Hi Darren
If you are using a link without beginning slash it's a relative link. Therefore that your css file is in the css folder it searches www.yourdomain.com/css/Media/1119/menuarrow.gif. Use instead correct relative urls or absolute urls
correct relative url: url("../Media/1119/menuarrow.gif")
absolute link: url("/Media/1119/menuarrow.gif")
hth, Thomas
thanks for that, think I was having a 'doh' moment, :-) . thanks for your help Thomas
LOL, it's like a monday, isn't it?
is working on a reply...