title: Responsible tooltip / bootstrap 4
body: <p>I have a problem with my tool-tip. 
  So I have a button.
  Here it is:
  <a href="https://i.stack.imgur.com/lcv7D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lcv7D.png" alt="1"></a>
  <br>And I have a tool-tip for this button like this.
  <a href="https://i.stack.imgur.com/Pt2Cq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pt2Cq.png" alt="2"></a>
  When i change side of screen by resizing my browser It will become to:
  <a href="https://i.stack.imgur.com/Pt2Cq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pt2Cq.png" alt="3"></a>
  So my tool-tip is not responsive.
  I tried to solve it by using bootstrap but it didn't find any solution.
  So here is my code example:</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>$(document).ready(function() {
    var nbP = $('.container-tooltip p').length;
    var w = parseInt($('.container-tooltip p').css("width"));
    var max = (nbP - 1) * w;
  
    $('body').on('click', '.close-tooltip', function() {
      $('.container-tooltip').animate({
        'top': -1200
      }, {
        duration: 500,
        queue: false,
  
      });
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.rus-tip {
    font-size: 18px;
    color: #2C2C2C;
    margin: 50px 42px 0px 40px;
    text-align: center;
    font-family: 'Open Sans', sans-serif !important;
  }
  
  .container-tooltip {
    position: fixed;
    width: 280px;
    height: 135px;
    left: 93%;
    top: 30%;
    margin-top: -119px;
    margin-left: -200px;
    background-color: #F3F3F3;
    border-radius: 6px;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.4);
    z-index: 2;
  }
  
  .container-tooltip:before {
    content: '';
    display: block;
    position: absolute;
    left: 250px;
    bottom: 100%;
    width: 0;
    height: 0;
    border-bottom: 10px solid #F3F3F3;
    border-top: 10px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  }
  
  .close-tooltip {
    cursor: pointer;
  }
  
  .close-tooltip:after {
    content: "╳";
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 12px;
  }
  
  .close-tooltip:before {
    right: 40px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  .btn-lang {
    text-transform: uppercase;
    background-color: #7726E5;
    color: #fff;
  }
  
  .btn-lang:not(:disabled):not(.disabled).active,
  .btn-lang:not(:disabled):not(.disabled):active,
  .show&gt;.btn-lang.dropdown-toggle {
    color: #fff;
    background-color: #5E1EB8;
    border-color: #5E1EB8;
  }
  
  .btn.btn-lang.active[disabled] {
    background-color: #5D1EB5;
    opacity: 1!important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;form action="" method="post"&gt;
    &lt;div class="btn-group" role="group" aria-label="Choose Language"&gt;
      &lt;input type="submit" name="language" value="en" class="btn btn-lang" disabled&gt;
      &lt;input type="submit" name="language" value="ua" class="btn btn-lang" disabled&gt;
      &lt;div class="container-tooltip"&gt;
        &lt;h1 class="rus-tip"&gt;Хотите перевести сайт на русский?&lt;/h1&gt;
        &lt;span class="close-tooltip"&gt;&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Sorry for my English</strong></p>