Some time ago, I wrote about a layout problem when using the People Search Box Web Part outside a SharePoint Search Center. Other layout problems occurs when you enable Query Suggestions for the Search Box Web Part.
What I experienced is that two different layout problems occur:
- When Search Suggestions are enabled for the Search Box in the Top Navigation Menu;
- When Search Suggestions are enabled for a Search Box on a page.
Fix Search Suggestions When Used in Top Navigation Menu
Problem
Solution
The following CSS code solves the layout problem.
|
|
The CSS top attribute value depends on the height of the s4-titlerow.
Fix Search Suggestions When Used on a page
Problem
Search Suggestions are being displayed on top of the Search Box.
Solution
The following CSS code solves the layout problem.
|
|
Changes
CSS update: 02/11/2011
Changed the width parameter to min-width. This allows the suggestion box to automatically expand based on the suggestion text size.