Ivory Search causing CLS (layout shift) : Help fixing
-
Hi
The Ivory Search bar is on every page on my site.
The search bar shifts when the page loads and this causing cumulative layout shift when testing site on PageSpeed Insights.
I don’t know how to fix the shifting. I know the CSS is not perfect. I took pieces of CSS from different people to style it. I don’t code.
If you can tell me what to change with the code to have it properly structured, that would be great. My current CSS:
.is-form-style button.is-search-submit { display: inline-block; } span.is-search-icon { width: 36px !important; } .header-widget-area form.is-search-form { width: 380px; max-width: auto; display: table-cell; margin-bottom: 15px; border-radius: 5px 0px 0px 5px; } .is-form-style input.is-search-input { padding: 12px; right: 0px; padding-left: 14px; height: 40px; font-size: 17px !important; font: Helvetica; font-weight: 500; font-color: #8894a0; margin-bottom: 15px; border-radius: 5px 0px 0px 5px; } .is-form-style button.is-search-submit { position: absolute; top: 0px; right: 0px; background-color: #ff9c00; margin-bottom: 15px; border-radius: 0px 5px 5px 0px; } .is-form-style button.is-search-submit .is-search-icon { position: absolute; top: 0px; right: 0px; border-radius: 0px 5px 5px 0px; height: 40px; }
—-
thanks in advance…The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Ivory Search causing CLS (layout shift) : Help fixing’ is closed to new replies.