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
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%;
}
LikeLike