Fixed Logo Size for Desktop / Mobile / Sticky

Hello,

I'm optimizing my website via Lighthouse and trying to fix all the issues. So far I was able to implement the recommendations, but there is one thing i could not manage to improve.

I have a high cumulative layout shifting value because the logo images do not have a fixed height/width attribute. For all the other images i added height/width and the CLS Value was affected positively.

How can i set the width/heigth for all the logo variants in Betheme?


I already tried to set the heigth/width with custom css like this:

img.logo-main.scale-with-grid {

  1. height: 43px !important;
  2. width: auto !important;

}


But still, Lighthouse shows that the logos still lead to high cumulative shifts.

Any suggestions?

Comments

Sign In or Register to comment.