CGSmartimage & Background-image
Posted: Fri Dec 23, 2016 11:05 am
I want to define a (variable) background image in a div.
I use this code :
CGSmartimage should croptofit the background image
This is not working. The image is not shown at all.
Please help. What is wrong here.
I use this code :
Code: Select all
<div class='news-image' style="background-color: transparent;background: url([[CGSmartImage src="\uploads\images\{$field->displayvalue}" filter_croptofit="360,190,c"]]);"></div>
This is not working. The image is not shown at all.
Please help. What is wrong here.