0

I am trying to come up with a reasonable method for adjusting the column widths in the sharepoint 2010 (foundation) announcements web part. Specifcally, in the announcements details (listed as dispform.aspx in sharepoint designer).

The reason for this change is because the body of the typical announcements the client posts have multiple indentations and more width is require for correct display.

Adjusting the XML width property solves this partially (e.g. setting it to 1200px), but the rows/columns that display the DESCRITIONS on the left (Title, Body, Expires), have an ENORMOUS ammount of whitespace which force the title text, body text, and expires date over to the right and makes the whole page look silly.

Can anyone explain a good method for correcting this?

1 Answer 1

3

Out of the box, there's no "default" functionality for being able to set column widths. SharePoint will basically treat it like a primitive HTML table and flex the columns to fit the content.

There's methods for identifying the column by the column title using jQuery and pushing a width parameter onto the cell. You can also use CSS in some cases, though conditional CSS behaves inconsistently across browsers--particularly IE 7, 8, and 9 which all have different levels of standards non-compliance.

If you really need granular control over it you likely need to make a custom data view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.