21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 496 Views |
-
Image Control in a Style Artibute

12 January 2011 at 4:53am Last edited: 12 January 2011 4:54am
Hey guys.
Looking for some help here.
I have the following code in a template file. You can see that I want to add an image into the 'style' attribute of a div tag (the below code doesnt work). But I need this to be controlled from the CMS. I can't just put it into the div because, as you can see I need another image layering over it. Is there a way to do this?
<div id="featureImage" class="grid_10 alpha" style="background: #fff url($FeaturePhoto.SetWidth(614)) no-repeat;">
<img src="themes/blackcandy/images/featureBorder.png" align="right"/>
</div>Any help would be appreciated.
Thanks!
-
Re: Image Control in a Style Artibute

12 January 2011 at 5:35am
It's fine. I found out how to do this:
<div id="featureImage" class="grid_10 alpha" style="background: #fff url($FeaturePhoto.URL) no-repeat;">
<img src="themes/blackcandy/images/featureBorder.png" align="right"/>
</div>Sorry!
| 496 Views | ||
|
Page:
1
|
Go to Top |

