Having trouble lining up your SharePoint 2013 app parts on your wiki pages?

If you’ve built any new wiki pages in SharePoint 2013, you may have experienced some issues getting your web parts to line up nicely–particularly if you’ve modified the text layout of your wiki page to have multiple side-by-side columns. The columns make it easy to line up multiple app parts side by side, but the wiki pages’ tendency to add in extra paragraph spacing above some of your app parts can make it hard to line up all your app parts on the same vertical axis point. Here’s an example of a page that is suffering from some extra paragraph spacing:

Spaces05

As you can see in the shaded yellow box, I’m getting an extra paragraph of space above my app part in the left-most column of my page. These extra spaces seem to occur on wiki pages specifically, and usually in the left-most column of my page.

I could solve this problem by creating a Web Part Page instead of a Wiki Page (since web part pages don’t throw in these extra spaces), but I still wanted to figure out how to troubleshoot this type of issue on a wiki page.

Here are the steps I followed to create the wiki page shown above:

  1. Go to Gear > Add a page
  2. Type in a name for your page. (I named mine Queue.) At this point a new wiki page is created and saved in the Site Pages library of your site.
  3. Set the text layout for the page. Go to your Format Text ribbon, click on Text Layout and select Three columns with header
    Spaces01
  4. Now you’re ready to insert your web parts. Place your cursor in your header zone, click on the Insert ribbon and select Web Part.
  5. We’re going to insert an image here, so click on the Media and Content web part category and then select Image Viewer and click on Add.
    Spaces03
  6. I’ll add in my image by clicking on the open the tool pane hyperlink in my new Image Viewer web part. Here’s our finished image:
    Spaces04
  7. Now we’re ready to add some app parts to the page to render our list data. I’m going to add 3 app parts to the page–one in each of my page’s 3 columns. Here are the steps I followed to add each app part:
    1. Click into a column.
    2. Click on the Insert ribbon and select App Part.
    3. Choose the list or library you want to use and select Add.

Once I finish adding my 3 identical app parts to my page, this is what I see:

Spaces05

I tried simply placing my cursor in the extra space and hitting delete, but that deletes my app part entirely. The best way to remove this extraneous spacing is to edit the source of the page and remove the offending HTML paragraph tags. Here are the steps to perform this cleanup:

  1. Place your cursor in the extra paragraph space you want to get rid of.
  2. Click on the Format Text ribbon and select Edit Source.
    Spaces06
  3. Notice the spare paragraph tag located at the top of your HTML Source. (Shown highlighted in yellow below).
    Spaces07
  4. Highlight all the text on line 1 of your HTML Source and press your Delete key to remove it.
  5. Press OK to save your changes.

2 comments

  1. It did not work for me. However a hardcore approach was to switch the view to single column and then back into 3 columns and reposition the parts. The extra line disappeared and the parts were aligned nicely

Leave a Reply

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 )

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