These DOM elements contribute most to the CLS of the page. Learn how to improve CLS
Element | CLS Contribution |
|---|---|
Async loading aur preload rules search script snippet-item r-snippetized under … <div class="big-post-text"> | 0.005 |
Recent posts Largest Contentful Paint element Remove unused script elements Jan… <div class="widget Blog" data-version="2" id="Blog1"> | 0.002 |
NOT WORK WITH Largest Contentful Paint element#1
searching script big-post-text important you that to change it only in css style section code 👇{body section
Replace👇 code for big-post-text to make it responsive HTML6
.heroPost .big-post-text{
background-color:$(heropost.secondary.background.color);
box-sizing:border-box;
color:$(heropost.secondary.text.color);
-webkit-box-flex:1;
-webkit-flex:1 1 auto;
-ms-flex:1 1 auto;
flex:1 1 auto;
min-width:0;
padding:48px
}HTML7
/* Default styles for big-post-text */ .heroPost .big-post-text { background-color: $(heropost.secondary.background.color); box-sizing: border-box; color: $(heropost.secondary.text.color); -webkit-box-flex: 1; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; min-width: 0; padding: 48px; } /* Default styles for big-post-text */ .heroPost .big-post-text { /* Existing styles */ display: flex; /* Changing display property to flex */ align-items: center; /* Centering content vertically */ white-space: nowrap; /* Preventing text from wrapping */ } /* Targeting text within big-post-text for horizontal display */ .heroPost .big-post-text p, .heroPost .big-post-text span, .heroPost .big-post-text h1, .heroPost .big-post-text h2, .heroPost .big-post-text h3, .heroPost .big-post-text h4, .heroPost .big-post-text h5, .heroPost .big-post-text h6 { display: inline; /* Making text inline */ } /* Media query for responsiveness */ @media screen and (max-width: 600px) { .heroPost .big-post-text { /* Adjustments for smaller screens */ padding: 24px; /* Adjusted padding for smaller screens */ /* Any other styles for smaller screens */ }problem will be solved

Comments
Post a Comment