I want to add the article intro image to be the background image of a div. In my layout I have the following code which assigns the image to the div with hard coded CSS but the syntax is such that the 'background URL' is closed by the close bracket at the same time the PHP code is finished, leavign code snippites and an unclosed div in the PHP.
<div style=" height:100px; width:100px; background-image: url('<?php echo JLayoutHelper::render('joomla.content.intro_image', $item); ?>');"></div>
Any help would be appreciated, I think I need to call the image another way? as at the moment this is what I have.
How it displays at the moment.