<div class="content">
  <div class="wrapper">
    <div class="fix"></div>
  </div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
End of the content
  </div>
.content {
  position: relative;
  width: 300px;
  background: red;
}

.wrapper {
  position: absolute;
  right: 0;
  width: 41px;
}

.fix {
  position: fixed;
  background: green;
  width: 41px;
  height: 41px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.