Friday 3 September 2010

Sharepoint

I have recently started developing webparts using Sharepoint 2007. Some *fun* things I have encountered along the way...

Styling in sharepoint was tricky, until I started using 960 Grid System

I wrote a method to take in either one or two controls, and a main div to hold them. Styles for the control divs can also be passed.

I then wrapped each control in a div, gave it the gs class it needed i.e. "grid_12" as well as any styles passed in.

Then I added these divs to a container div and returned this so it could be styled independently.

(Main Div Holds Container Div, which holds Control Divs.)

No comments:

Post a Comment