Update: boxed view with one column only

Worked like a charm.

Path to SharePoint... and Beyond!

Last year, I published a sample script that changes the layout of boxed views from two columns to a single column.

Several readers reported that it didn’t work for them. Larry Pfaff investigated the issue, and came up with the following update:

To include the script in your page, use a CEWP placed below the boxed view.

The above script is written for wss v3. It identifies the Web Part by its id “WebPartWPQ1”. If you use MOSS, or if the boxed view is on a page along with other Web Parts (typically on the site home page), you’ll need to change the id to “WebPartWPQ2” or “WebPartWPQn“. Or you can modify the code to scroll through all the Web Parts on the page and grab the boxed views.

Larry’s update works for all boxed styles, while my initial code only worked against the “Boxed, no labels” style.

Remember that the…

View original post 170 more words

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on “Update: boxed view with one column only”

  1. The original work done here is really great but just want to make note of the CSS fix posted in the comments, it really works even better, had some issues with the width in different versions of IE that the CSS fixed.

    Mike B (@MaddogMikeB) says:
    December 18, 2012 at 9:22 pm

    A better ways to do this is with a style sheet:

    table.ms-listviewtable > tbody > tr > td {
    border: 1px solid transparent;
    border-width: 1px 0px;
    float: right;
    width: 100%;


Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.