Skip to main content

Avoid large layout shifts solved(CLS)

 


Avoid large layout shifts 2 elements found







ye problem humko is liye aati hai kyoki  jab user site ko open karta ahi to site ka layout shift hota hai iss liye layout ka place asign karna hota hai taki layout apni jagha per stick ho jaye 

paste this code in html/java script in layout or u can paste it in the theme 


HTML
<!DOCTYPE html>
<html>
<head>
  <title>Blog Layout</title>
  <style>
    /* CSS inline style */
    .container {
      width: 80%;
      margin: 0 auto;
      background-color: #f2f2f2;
      padding: 20px;
      box-sizing: border-box;
    }

    .featured-post {
      width: 70%;
      background-color: #ddd;
      padding: 10px;
      box-sizing: border-box;
    }

    .blog-post {
      width: 60%;
      background-color: #ddd;
      padding: 10px;
      box-sizing: border-box;
    }

    .sidebar {
      width: 30%;
      background-color: #ddd;
      padding: 10px;
      box-sizing: border-box;
    }

    .footer {
      width: 100%;
      background-color: #f2f2f2;
      padding: 20px;
      box-sizing: border-box;
    }

    /* Additional classes for specified elements */
    .blog-widget {
      /* Define styles for the .widget.Blog element */
      /* For example */
      background-color: #f5f5f5;
      padding: 15px;
      margin-bottom: 15px;
    }

    .big-post-text {
      /* Define styles for the .big-post-text element */
      /* For example */
      font-size: 20px;
      font-weight: bold;
      color: #333;
      margin-top: 20px;
    }

    .post-header {
      /* Define styles for the .post-header element */
      /* For example */
      font-size: 18px;
      font-weight: bold;
      color: #666;
      margin-bottom: 10px;
    }

    .post-link {
      /* Define styles for the .post-link element */
      /* For example */
      text-decoration: none;
      color: #0077cc;
    }
  </style>
</head>
<body>
  <header class="header">
    <!-- Header content here -->
  </header>

  <div class="container">
    <main class="main-content">
      <section class="featured-post blog-widget" id="Blog1" data-version="2">
        <!-- Featured Post content here -->
      </section>

      <section class="blog-post big-post-text">
        <div class="big-post-text">
          <!-- Big Post Text content here -->
          <div class="post-header">
            <!-- Post Header content here -->
            <a href="https://insightssolver.blogspot.com/" class="post-link">Link</a>
          </div>
        </div>
      </section>

      <aside class="sidebar">
        <!-- Sidebar content here -->
      </aside>
    </main>
  </div>

  <footer class="footer">
    <!-- Footer content here -->
  </footer>
</body>
</html>
solved
https://www.youtube.com/watch?v=_-3lzdN4PVQ TAKE REFRENCE TO UNDERSTAND
if upper code is not fully working u can try this 2nd code



HTML2
<!DOCTYPE html>
<html>
<head>
  <title>Blog Layout</title>
  <style>
    /* CSS inline style */
    .container {
      width: 80%;      width: 80%;
      margin: 0 auto;
      background-color: #f2f2f2;
      padding: 20px;20px;
      box-sizing: border-box;
    }

    .featured-post {
          width: 80%;      width: 80%;
      background-color: #ddd;
      padding: 10px;10px;
      box-sizing: border-box;
    }

    .blog-post {
      width: 60%;width: 60%;
      background-color: #ddd;
      padding: 10px;10px;
      box-sizing: border-box;
    }

    .sidebar {
      width: 30%; width: 30%;
      background-color: #ddd;
      padding: 10px;10px;
      box-sizing: border-box;
    }

    .footer {
      width: 100%;width: 100%;
      background-color: #f2f2f2;
      padding: 20px;20px;
      box-sizing: border-box;
    }

    /* Additional classes for specified elements */
    .blog-widget {
      /* Define styles for the .widget.Blog element */
      /* For example */
      background-color: #f5f5f5;
      padding: 15px;15px;
      margin-bottom: 15px;15px;
    }

    .big-post-text {
      /* Define styles for the .big-post-text element */
      /* For example */
      font-size: 20px;20px;
      font-weight: bold;
      color: #333;
      margin-top: 20px;20px;
    }

    .post-header {
      /* Define styles for the .post-header element */
      /* For example */
      font-size: 18px;18px;
      font-weight: bold;
      color: #666;
      margin-bottom: 10px;10px;
    }

    .post-link {
      /* Define styles for the .post-link element */
      /* For example */
      text-decoration: none;
      color: #0077cc;
    }
  </style>
</head>
<body>
  <header class="header">
    <!-- Header content here -->
  </header>

  <div class="container">
    <main class="main-content">
      <section class="featured-post blog-widget" id="Blog1" data-version="2">
        <!-- Featured Post content here -->
      </section>

      <section class="blog-post big-post-text">
        <div class="big-post-text">
          <!-- Big Post Text content here -->
          <div class="post-header">
            <!-- Post Header content here -->
            <a href="https://insightssolver.blogspot.com/" class="post-link">Link</a>
          </div>
        </div>
      </section>

      <aside class="sidebar">
        <!-- Sidebar content here -->
      </aside>
    </main>
  </div>

  <footer class="footer">
    <!-- Footer content here -->
  </footer>
</body>
</html>
here i am posting best one more code related to upper problem in this lil bit unused java script no will also reduce


HTML3


<!DOCTYPE html>
<html>
<head>
  <title>Blog Layout</title>
  <style>
    /* CSS inline style */
    .container {
      width: 80%;
      margin: 0 auto;
      background-color: #f2f2f2;
      padding: 20px;
      box-sizing: border-box;
    }

    .featured-post, .blog-post, .sidebar {
      width: 100%;
      background-color: #ddd;
      padding: 10px;
      box-sizing: border-box;
    }

    .blog-post {
      width: 60%;
    }

    .sidebar {
      width: 30%;
    }

    .footer {
      width: 100%;
      background-color: #f2f2f2;
      padding: 20px;
      box-sizing: border-box;
    }

    /* Additional classes for specified elements */
    .blog-widget {
      background-color: #f5f5f5;
      padding: 15px;
      margin-bottom: 15px;
    }

    .big-post-text {
      font-size: 20px;
      font-weight: bold;
      color: #333;
      margin-top: 20px;
    }

    .post-header {
      font-size: 18px;
      font-weight: bold;
      color: #666;
      margin-bottom: 10px;
    }

    .post-link {
      text-decoration: none;
      color: #0077cc;
    }
  </style>
</head>
<body>
  <header class="header">
    <!-- Header content here -->
  </header>

  <div class="container">
    <main class="main-content">
      <section class="featured-post blog-widget" id="Blog1" data-version="2">
        <!-- Featured Post content here -->
      </section>

      <section class="blog-post big-post-text">
        <div class="big-post-text">
          <!-- Big Post Text content here -->
          <div class="post-header">
            <!-- Post Header content here -->
            <a href="https://insightssolver.blogspot.com/" class="post-link">Link</a>
          </div>
        </div>
      </section>

      <aside class="sidebar">
        <!-- Sidebar content here -->
      </aside>
    </main>
  </div>

  <footer class="footer">

    <!-- Footer content here -->
  </footer>
</body>
</html>

Comments

Popular posts from this blog

ADD PRICE IN SARA PRODUCT SOLVED

 ₹0.00 bottle 1 ₹0.00art mein ek item hai, jiska naam hai "DISCOVER BEST BRAIN-BOOSTING MULTIVITAMINS: LATEST TOP RESEARCH". Is item ka price ₹0.00 hai, aur isme ek bottle shamil hai. Is item ko aapne ek baar add kiya hai, isliye total price bhi ₹0.00 dikha raha hai.ji per actual me ye product ka price 1200 hia jo ki cart me update nahi ho pa raha hai kaise karu thik se bataye meri bhasha me  mere cart product price add karne ka tarika bataye HTML ME PASTE KARE  <h2 class="premium multivitamins">            </h2>     <div class="mediculabs_product_item_price item_price show"><b>Price:</b><span class="mediculabs_product_price meta-price">65 INR./span&gt;</span></div>

sara remove powered by blogger in footer

💀 no line 8460 <div class='copyright-area'>Created By <a href='http://soratemplates.com/' id='mycontent' rel='dofollow' title='SoraTemplates'>Blogger Theme</a> | Distributed By <a href='https://gooyaabitemplates.com/' rel='dofollow' style='color:#ff00ba;' target='_blank' title='Blogger Templates'>Blogger Templates</a> 💀remove attribute and add html gadget in layout  paste this code there to add ur site logo there <div id="dynamicContent">     <a id="dynamicLink" rel='nofollow'>         <img id="dynamicImage" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdU5mO3u-x3u1kxj0JaU7qzjSZjMB8osCaoPfwGlc2Kx4mjKw3FHkGCjXQs2QZjzujuwZcyPkJABjHi8H8565xjzGFdb5EiwVdRS5LptVvpBdiEHsEIdouU8ALls0t61Kl-FadOnZBN-EUgrS-DZeI-8CYvdpR7TOj0JcZn1guY7RWAHBxOLmtjHaphlYE/s16000-rw/crop%20logo%20image%20side%20bar.png" alt=...

ai tool

 https://smodin.io/free-english-rewriter-and-spinner/ai-detection-remover ai detecter and removal https://originality.ai/blog/highlight-ai-text= for ai highlighter and affiliate marketing https://gptzero.me/  = ai writing detector and highlighter  https://www.zerogpt.com/           = ai content writer detector https://plagiarism-remover.com/humanize-ai-text/           = humanize writer