Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Vertical alignment of the Compact Search Box in Fixed Nav.Menu › Reply To: Vertical alignment of the Compact Search Box in Fixed Nav.Menu
January 12, 2026 at 2:05 pm
#56737
Keymaster
Hi!
Thank you for all the details it helps a lot. It looks like it’s due to the top margin, which also applies to the box in the sticky mode. I think the easiest and most convenient soluton is to use a short custom CSS to offset the margin when the sticky state is enabled:
.is-sticky .asp_m_1 {
margin-top: 6px !important;
}
This will set the margin to 6px on the box, when the sticky container is enabled.