OPEN TO WORK

Available for new opportunities! Let's build something amazing together.

Fix: People Search Box Has Layout Problems When Used Outside a Search Center

Search Search Center Searchbox v4.master Web Part
post

This post is over a year old, some of this information may be out of date.

A colleague discovered a layout problem when he was using the People Search Box Web Part outside a SharePoint Search Center.

When you add the People Search Box Web Part to your page, the layout looks fine.

Show image People Search Box
People Search Box

The problem arises when you click on the Search Options link.

Show image People Search Box Layout Problem
People Search Box Layout Problem

As you can see, the property box is shown with a transparent background and the labels are almost unreadable.

Solution

To solve this problem, you could add the following CSS styles to your custom stylesheet or inside the master page itself.

.psrch-OptionsContainer {
font-size: 8pt;
height: 130px;
margin-top: 20px;
width: 355px;
}

Result

Show image People Search Box With CSS Fix
People Search Box With CSS Fix

Related articles

Report issues or make changes on GitHub

Found a typo or issue in this article? Visit the GitHub repository to make changes or submit a bug report.

Comments

Elio Struyf

Solutions Architect & Developer Expert

Loading...

Let's build together

Manage content in VS Code

Present from VS Code