title: Position fixed by different screen resolution
body: <p>I have problem with the fixed div box with different screen size, the box is look perfect when the resolution is in 1366*768, but if the screen goes to bigger or smaller resolution, the box is <code>running out</code> of its position, which is not aligned with the container, as illustrate of the below image.</p>
  
  <p>Could it be properly place and align the box with different screen resolution?</p>
  
  <p>*Note: The div box will shrink to edge when the page is scrolling down.</p>
  
  <p><img src="https://i.stack.imgur.com/2nI2e.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/Sv8PX.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/15QQi.png" alt="enter image description here"></p>
  
  <p><strong>Fixed div:</strong></p>
  
  <pre><code>&lt;a href="#" data-toggle="modal" data-target="#modalBox"&gt;
      &lt;div class="adv"&gt;&lt;span"&gt;Big Hi to World&lt;/span&gt;&lt;/div&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p><strong>CSS:</strong></p>
  
  <pre><code>.container {
      width: 1054px;
  }
  
  .adv {
      position: fixed;
      top: 12px;
      right: 12%;
      width: 230px;
      height: 56px;
      background-color: #348cb2;
      text-align: center;
      z-index: 9998;
  }
  .adv:hover {
      background-color: #6fc7bb;
  }
  .adv span {
      display: block;
      text-transform: uppercase;
      letter-spacing: 4px;
      font-size: 26px;
      font-weight: 300;
      color: #fff;
      padding: 12px;
      line-height: 110%;
  }
  .adv-ts {
      right: 0;
      width: 48px; 
      height: 48px;
  
      -webkit-transition: all 0.3s ease-in-out;
      transition: all 0.3s ease-in-out;
      opacity: 1.0;
  }
  .adv-ts span {
      display: none;
  }
  .adv-ts:after {
      content: "Hi";
      font-size: 28px;
      color: #fff;
      padding: 13px 11px;
      display: block;
  }
  </code></pre>
  
  <p>Appreciate for solution!</p>