Hi!
Is it possible to call an uploaded file in css as a background image using the entries tag? I’m trying to code my rollovers without javascript. Here is the relevant part of the template:
{exp:channel:entries channel="{channel}" category="73"}
<ul id="staff">
<li id="staff5"><a href="#"></a>
</li>
</ul>
{/exp:channel:entries}And here is the relevant part of the css, which is included in the template header so that the css will be processed using EE filters:
li#staff5 a:hover {
background-image:url(/images/uploads/headshots/{exp:channel:entries channel="{channel}"}{photo_about_biopic}{/exp:channel:entries});
background-repeat:no-repeat;
text-indent:-9999em;
}Of course there is a separate style declaration for the image when it’s not being rolled over—that is working fine. But when you roll over, the image area is just white.
Thanks!