Modals


This is an example of a modal. You can copy the code by clicking the "Show Code" button above. Copy the code between the "Start" and "End Modal Dialog Comment" and paste it where desired within the target HTML. If you use more than one dialog modal on a page, make sure you create a unique ID for each. You can set the width of the modal as a percentage of the width of the screen. For example, if you set the max-width to 80%, then you should also set the left margin to 10%. The left margin is calculated by taking 100% minus the max-width percentage and dividing the remainder by 2.





Classic Modal Code

              
    
<div class="modal fade m-modal" id="classicModal" tabindex="-1" style="display: none;" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <div class="modal-title">Classic Modal</div>
        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
          <span> X <span>
        </button>
      </div>
      <div class="modal-body"> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,</div>
      <div class="modal-footer">
        <button type="button" class="btn btn-white btn-lg m-btn-waves waves-danger waves-effect">Save changes</button>
        <button class="btn btn-white btn-lg m-btn-waves waves-danger waves-effect" data-bs-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>

<div class="text-center">
<button class="btn btn-white btn-lg m-btn-waves-float mb-2 mr-1 waves-effect waves-float" data-bs-toggle="modal" data-bs-target="#classicModal">
  <i class="far fa-file" aria-hidden="true"></i> Classic </button>
</div>

    

Top Right Modal

              
  
<div class="modal fade m-modal m-modal-fixed m-top-right-modal show" id="topRightModal" tabindex="-1" role="dialog" aria-modal="true" style="display: block;">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header bg-danger">
        <div class="modal-title text-white">Top Right Modal</div>
        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
          <span> X </span>
        </button>
      </div>
      <div class="modal-body">
        <div class="tabs-container">
          <div class="card">
            <nav class="m-navbar bg-success">
              <ul class="m-nav m-tabs-nav list-group" role="tablist">
                <li>
                  <a href="#profile5" class="active m-waves waves-effect" role="tab" aria-controls="profile5" data-bs-toggle="list" aria-selected="true">
                    <i class="far fa-comments" aria-hidden="true"></i> Profile </a>
                </li>
                <li>
                  <a href="#message5" class="m-waves waves-effect" role="tab" aria-controls="message5" data-bs-toggle="list" aria-selected="false" tabindex="-1">
                    <i class="far fa-user-circle" aria-hidden="true"></i> Message </a>
                </li>
                <li>
                  <a href="#settings5" class="m-waves waves-effect" role="tab" aria-controls="settings5" data-bs-toggle="list" aria-selected="false" tabindex="-1">
                    <i class="fas fa-cogs" aria-hidden="true"></i> Settings </a>
                </li>
              </ul>
            </nav>
            <div class="card-body tab-content">
              <div id="profile5" role="tabpanel" class="tab-pane fade show active" aria-labelledby="profile5">
                <p class="mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
              </div>
              <div id="message5" role="tabpanel" class="tab-pane fade" aria-labelledby="message5">
                <p class="mb-0">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.</p>
              </div>
              <div id="settings5" role="tabpanel" class="tab-pane fade" aria-labelledby="settings5">
                <p class="mb-0">But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-success m-btn-waves waves-danger waves-effect">Send</button>
        <button class="btn btn-danger m-btn-waves waves-effect" data-bs-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>


<div class="text-center">
<button class="btn btn-white btn-lg m-btn-waves-float mb-2 mr-1 waves-effect waves-float" data-bs-toggle="modal" data-bs-target="#topRightModal">
  <i class="far fa-file" aria-hidden="true"></i> Top Right </button>
</div>

  

Bottom Modal

              
  
<div class="modal fade m-modal m-modal-fixed m-bottom-modal" id="bottomModal" tabindex="-1" style="display: none;" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <div class="modal-title">Bottom Modal</div>
        <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
          <span> X <span>
        </button>
      </div>
      <div class="modal-body"> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur,</div>
      <div class="modal-footer">
        <button type="button" class="btn btn-white btn-lg m-btn-waves waves-danger waves-effect">Send</button>
        <button class="btn btn-white btn-lg m-btn-waves waves-danger waves-effect" data-bs-dismiss="modal"> Close </button>
      </div>
    </div>
  </div>
</div>


<div class="text-center">
  <button class="btn btn-white btn-lg m-btn-waves-float mb-2 mr-1 waves-effect waves-float" data-bs-toggle="modal" data-bs-target="#bottomModal">
    <i class="far fa-file" aria-hidden="true"></i> Bottom </button>
</div>

  

Instructions



Modal Classes
  • modal-sm: Small-sized modal
  • modal-lg: Large-sized modal
  • modal-xl: Extra Large-sized modal
  • m-sc-wd-10p: 10% of the screen width
  • m-sc-wd-20p: 20% of the screen width
  • m-sc-wd-30p: 30% of the screen width
  • m-sc-wd-40p: 40% of the screen width
  • m-sc-wd-50p: 50% of the screen width
  • m-sc-wd-60p: 60% of the screen width
  • m-sc-wd-70p: 70% of the screen width
  • m-sc-wd-80p: 80% of the screen width
  • m-sc-wd-90p: 90% of the screen width
  • m-sc-wd-100p: 100% of the screen width
  • m-sc-hg-10p: 10% of the screen height
  • m-sc-hg-20p: 20% of the screen height
  • m-sc-hg-30p: 30% of the screen height
  • m-sc-hg-40p: 40% of the screen height
  • m-sc-hg-50p: 50% of the screen height
  • m-sc-hg-60p: 60% of the screen height
  • m-sc-hg-70p: 70% of the screen height
  • m-sc-hg-80p: 80% of the screen height
  • m-sc-hg-90p: 90% of the screen height
  • m-sc-hg-100p: 100% of the screen height
  • m-modal-fixed m-bottom-modal: Positions modal at the bottom of the viewport
  • modal-fixed m-top-modal: Positions modal at the top of the viewport
  • m-modal-fixed m-top-right-modal: Positions modal at the top right corner of the viewport
  • m-modal-fixed m-top-left-modal: Positions modal at the top left corner of the viewport
  • m-modal-fixed m-bottom-right-modal: Positions modal at the bottom right corner of the viewport
  • m-modal-fixed m-bottom-left-modal: Positions modal at the bottom left corner of the viewport
  • m-modal-fixed m-right-modal: Positions modal at the right side of the viewport
  • modal-dialog-centered: Centers the modal vertically and horizontally within the viewport
  • modal-dialog-scrollable: Enables scrolling within the modal if its content exceeds the available height
  • fade: Adds a fade-in and fade-out animation effect to the modal
  • show: Displays the modal by default (useful when using JavaScript to toggle modal visibility)
  • modal-fullscreen: Expands the modal to full-screen size
  • modal-fullscreen-sm-down: Expands the modal to full-screen size for small and extra-small screens
  • modal-fullscreen-md-down: Expands the modal to full-screen size for medium, small, and extra-small screens
  • modal-fullscreen-lg-down: Expands the modal to full-screen size for large, medium, small, and extra-small screens
  • modal-fullscreen-xl-down: Expands the modal to full-screen size for extra-large, large, medium, small, and extra-small screens
EconoEnvelope

An industry leader in economical imprinted envelopes

Contact Information

Econo Envelope

20331 Lake Forest Drive
Suite C-16
Lake Forest, CA 92630

800-325-0476
866-961-4488
Email Us!
Need Help?
Please Contact Us (Requried *)

By clicking SUBMIT and choosing text message, you consent to receiving SMS messages. Messages and Data rates may apply. Message frequency will vary. Reply Help to get more assistance" Reply Stop to Opt-out of messaging