is the reason you need a container div to give it a class/style name?
If so you may be able to accomplish this by setting the CssClass property for the widget. If you open the Advanced settings for almost any widget on the page, you will find a CssClass property. add your class here and it will be added to the wrapping div automatically!
Sometimes, this property is already populated with a value (such as sfContentBlock
) if this is the case, simply add a space then append your class to the propety.
I hope this is helpful! you've inspired a new video for the Sitefinity Guru
blog, I'll post it over the weekend, thanks for the idea!
if this isn't what you were attempting to accomplish, please let me know more details and I'll do what I can to help!!