I want to show a div which is always visible even as the user scrolls the page. I have used the CSS position: fixed; for that.
div
position: fixed;
Now I also want
You can simply do this:
.test { position: -webkit-sticky; /* Safari */ position: sticky; right: 0; }