title: How to set the bottom margin of a modal
body: <p>I'm having a problem opening the modal. What I notice is that there is no lower margin of the modal, as you can see from the figure.</p>
  <p>I have added JavaScript in case anyone cares.</p>
  <p>So you can see where the modal starts from but not where it ends. How can I solve this problem?
  Can you kindly help me?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var modal = document.getElementById("myModal");
  
  var btn = document.getElementById("myBtn");
  
  var span = document.getElementsByClassName("close")[0];
  
  btn.onclick = function() {
    modal.style.display = "block";
  }
  
  span.onclick = function() {
    modal.style.display = "none";
  }
  
  window.onclick = function(event) {
    if (event.target == modal) {
      modal.style.display = "none";
    }
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.modal {
              display: none;
              position: fixed;
              z-index: 1;
              padding-top: 100px;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
              overflow: auto;
              background-color: rgb(0, 0, 0);
              background-color: rgba(0, 0, 0, 0.4);
              }
  
          .modal-content {
              background-color: #fefefe;
              margin: auto;
              padding: 20px;
              border: 1px solid #888;
              width: 80%;
              z-index: 999;
          }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="myModal" class="modal"&gt;
  
                      &lt;!-- Modal content --&gt;
                      &lt;div class="modal-content"&gt;
                          &lt;span class="close"&gt;&amp;times;&lt;/span&gt;
                          &lt;div class="mycontent"&gt;
                              &lt;div&gt;
                                  &lt;h1 class="title1" id="title1"&gt;
                              &lt;/div&gt;
  
                              &lt;div class="text-container"&gt;
                                  &lt;p class="txt1" id="txt1"&gt; &lt;/p&gt;
                              &lt;/div&gt; &lt;br&gt;
  
                              &lt;div class="img"&gt; &lt;img id="img" src onerror="this.onerror=null;" style="width:50%"&gt; &lt;/div&gt;
                              &lt;br&gt;
  
                              &lt;div class="text-container"&gt;
                                  &lt;p class="txt2" id="txt2"&gt; &lt;/p&gt;
                              &lt;/div&gt; &lt;br&gt;
  
                              &lt;div class="video"&gt; &lt;iframe id="idframe" width="600" height="400"&gt; &lt;/iframe&gt; &lt;/div&gt; &lt;br&gt;
                          &lt;/div&gt;
  
                      &lt;/div&gt;
  
                  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>