Skip to main content

2 ways to add a Border around Web Parts

Sometimes there might be a need to add a border around SharePoint Web Part on a page. This could be due to specific visual or aesthetics requirements. I recently had a client who had some accessibility requirements. As such, one of their requests was a light border around each of the web parts on the page, so it is easier to identify for people with visual impairment. So in case you encounter the same need, let me show you two ways to do this in SharePoint.

Option 1: Web Part Properties

  1. Page > Edit Page
  2. Edit Web PartAddborderwebpart1
  3. On the Web Parts properties panel on the right-hand-side, choose Title and Border under Appearance > Chrome Type.Addborderwebpart2
  4. Click OK
  5. You will now see the light gray border around a web partadd a Border around Web Parts

Option 2: Insert a Table

Another way to add a border is to simply insert a table into the page and then insert a web part into a given cell. I use this trick sometimes when I need to align web parts, text and images on a page. Here is how you do this:

  1. Page > Edit Page
  2. Insert Tab > TableAddborderwebpart5
  3. Insert a table with say 2-3 rows and 1 column
  4. Once you have a table on the page, click inside of the cell and then Insert > Web Part, choose the web part you want to insert. Click AddAddborderwebpart6a
  5. Repeat for other web parts (in other cells).
  6. When all is set and done, you will end up with a page that looks like thisadd a Border around Web Parts


  1. For the second option, because it is a table that you are inserting, you have some additional styling optionsAddborderwebpart8
  2. Same trick (inserting a table) can be used to align text and images on the page. Say, you need to align text and an image on a SharePoint page. Just go ahead and insert a table with few rows and, say, one column and change Styling to Clear. Text and images will appear aligned, yet, table lines will be invisible.Addborderwebpart9
  3. It is important to note that both of the above options only work with classical pages only. These do not work with modern pages/web parts.Addborderwebpart4

You may also like

How to apply a site template to a SharePoint Site

April 28th, 2022

You may also like

5 ways to embed videos on a SharePoint page

August 17th, 2021

You may also like

How to add additional information about a user to People Web Part in SharePoint Online

May 25th, 2021

Need SharePoint Help?

Hourly consulting, training and configuration services are available

Learn More