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?
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:
[html]@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;
}
}[/html]
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.