How to create side panel Mobile Menu ?

SEO Help and Tips

How to create side panel Mobile Menu ?

Here is the example code of side panel mobile Menu:
Head:

  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">

  <style>
    /* Custom CSS for hover effect */
    .offcanvas-body a:hover {
      font-weight: bold;
    }

    /* Remove link underline */
    .offcanvas-body a {
      text-decoration: none;
    }
  </style>

Body:

  <div class="offcanvas offcanvas-start" id="demo">
    <div class="offcanvas-header">
      <button type="button" class="btn-close" data-bs-dismiss="offcanvas"></button>
    </div>
    <div class="offcanvas-body">
      <p>
        <ul>
          <li><a href="https://example.com">About</a></li>
          <li><a href="https://example.com">Contact Us</a></li>
          <li><a href="https://example.com">Logo</a></li>
          <li><a href="https://example.com">Terms</a></li>
          <li><a href="https://example.com">Privacy Policy</a></li>
          <li><a href="https://example.com">Q&A</a></li>
        </ul>
      </p>
      <button class="btn btn-dark" type="button"><a href="https://example.com">Home</a></button>
    </div>
  </div>
  <div class="container-fluid mt-3">
    <button class="btn btn-danger" type="button" data-bs-toggle="offcanvas" data-bs-target="#demo">Menu</button>

Note: Change the example url with your page url and use it.

Comments

Popular posts from this blog

Office Tool_SPSS v23 + Serial key

How to Fix FATAL error Failed to parse input Document ?

How to Reduce Lazy Load Resources

Popular posts from this blog

Office Tool_SPSS v23 + Serial key

How to Fix FATAL error Failed to parse input Document ?

How to Reduce Lazy Load Resources