<!DOCTYPE html>
<html dir="rtl">
<head>
<meta charset="UTF-8">
<body>
<div style="position: fixed;"><p style="overflow-y: hidden;">A<span style="position: sticky;">B$</span></p></div>
</body>
</html>