Can't get my head round this one...
I've created a variable to store the name of the image I want displayed as a background image to an element on a section page. This is so that the image can be different for each section.
I've got the following CSS code :
and the HTML is simple
It looks fine in Actinic and also when I do a page or site preview.
However, when I upload to the web server the image is missing and the CSS comes out as
The background-image file reference is empty.
I've tried it with the variable type set as text and as filename but both give this result. I've also tried it without quotes and with double quotes around the variable.
The images have been added to Additional Files and have been uploaded to the server.
See : http://www.aspak.co.uk/acatalog/Cardboard_Boxes.html - the image should go to the left and slightly above the section title.
Have I missed something or, more likely, done something silly? Anyone come across this before?
All suggestions gratefully accepted.
I've created a variable to store the name of the image I want displayed as a background image to an element on a section page. This is so that the image can be different for each section.
I've got the following CSS code :
Code:
#section_label_boxes { margin:-20px 0 0 0; padding:0.2em 0.2em 0.2em 0.2em; background-image:url('<actinic:variable name="LabelImageName" />'); background-repeat:no-repeat; vertical-align:top; }
Code:
<div id="section_label_boxes"> <h1><actinic:variable name="SectionName" /></h1> ... </div>
However, when I upload to the web server the image is missing and the CSS comes out as
Code:
#section_label_boxes { margin:-20px 0 0 0; padding:0.2em 0.2em 0.2em 0.2em; background-image:url(''); background-repeat:no-repeat; vertical-align:top; }
The background-image file reference is empty.
I've tried it with the variable type set as text and as filename but both give this result. I've also tried it without quotes and with double quotes around the variable.
The images have been added to Additional Files and have been uploaded to the server.
See : http://www.aspak.co.uk/acatalog/Cardboard_Boxes.html - the image should go to the left and slightly above the section title.
Have I missed something or, more likely, done something silly? Anyone come across this before?
All suggestions gratefully accepted.
Comment