Wrap Container ID around DataFormWebPart in SharePoint 2010

I am working on SharePoint 2010, and i am creating custom display using DataForm.Webpart. I am trying to implement the Isotope jquery Plugin and up to a point things are working ok.

But more to my question, how can I set a div/css ID to wrap around a webpart? Anywhere I try to place the container breaks the webpart.
Who is Participating?

Improve company productivity with a Business Account.Sign Up

bsmcyConnect With a Mentor Author Commented:
I managed to resolve the issue by coping the **entire webpart source code** (in SharePoint Designer), and with **Advanced Editing** enabled, I pasted the code just before the end of the page. This however caused the webpart to not be editable from a web browser since the code was added in the protected/safe area of the page.

        <div id="container">
          <WebPartPages:DataFormWebPart ...... >

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.