Zencart= 1.56C
template = modified Responsive Sheffield blue.
I would like to ask for some CSS help.
I have been optimizing my website for ages; images, minifying scripts, gzip, etc in order to have a fast website.
But I can not seem to make Google happy enough, because my Cumulative Layout Shift (CLS) for Mobile on Web Core Vitals on all pages does not go below 0.25.
Which is rated: poor.
Mostly I get 0.27 or 0.28. Not a terrible score, but nonetheless: poor.
The culprit has been identified as div.col12. In all pages it is present and ruins my CLS score, mostly for 0.18 to 0.22.
Now, I kind of grab the concept of this CLS. But my CSS knowledge is weak.
Is there something I could improve on the CSS of this div to fixate it better on the page to avoid CLS?
Here is what I found in my CSS:
[class*="col"]{float:left;margin-left:5px;}
.col12,.row-col-wrapper{width:960px;}
.onerow-fluid>.col12{width:99.9999%;}
@media (min-width:768px) and (max-width:979px){
.col12,.row-col-wrapper{width:768px;}
.onerow-fluid>.col12{width:99.9999%;}
@media (min-width:1200px){.row{margin-left:-5px;}
.col12,.row-col-wrapper{width:1200px;}
.onerow-fluid>.col12{width:99.9999%;}
Would I need to define something for media up to 767px?
Could it be also caused by something inside this div?
What else should I do or try?
(Live shop is https://shop.waroeng.nl/?language=en)
All input appreciated!
Bookmarks