I am working with Sitecore (7) & MVC and need guidance on how to include a css class attribute for an image using a field renderer in Sitecore.
Here is the HTML structure without Sitecore:
<div class="background-container">
<img src="/images/background-1.jpg" class="background">
</div>
And here is the equivalent with Sitecore:
<div class="background-container">
@Html.Sitecore().Field(Constants.Fields.HomeBackgroundImage)
</div>
Unfortunately, it seems that there isn't a straightforward method to add the class "background" to the image itself in Sitecore. Are there any alternative approaches to achieve this?
Thank you.