Reply To: Can i edit margins for vertical results depending if header is sticky or normal?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Can i edit margins for vertical results depending if header is sticky or normal? Reply To: Can i edit margins for vertical results depending if header is sticky or normal?

#16682
Ernest Marcinko
Ernest Marcinko
Keymaster

You are welcome.

There are two possible ways to address that:
1. Lowering the viewport size of the vertical results list on the back-end,
2. ..or using a custom CSS, like this:

@media (max-height:740px) {
    div.asp_r_1, div.asp_r_1 .results {
        max-height: 480px;
    }
}

@media (max-height:420px) {
    div.asp_r_1, div.asp_r_1 .results {
        max-height: 230px;
    }
}

Personally, I recommend solution 2., as the custom CSS will adopt better to screen sizes, and you can add more rules in descending order if needed.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)