Use negative margin to make the fixed element positionable:
```html
<div style='text-align: right;'>
<div style='display: inline-block;
position: fixed; width: 180px; margin-left: -180px;'>
<!-- Your content -->
</div>
</div>
```
Using `text-align: right` and `display: inline-block` allows for variable width of the outer `div`.
Do not position the inner `div` by `top` / `left` / `bottom` / `right`.
Thereby the inner `div` gets positioned via (negative) margin based on its natural position as if it was positioned using `position: absolute`.
As @246tNt mentioned: You can use two imbricated div.
Then use negative margin to make the fixed element positionable:
```html
<div style='text-align: right;'>
<div style='display: inline-block;
position: fixed; width: 180px; margin-left: -180px;'>
<!-- Your content -->
</div>
</div>
```
Using `text-align: right` and `display: inline-block` allows for variable width of the outer `div`.
Do not position the inner `div` by `top` / `left` / `bottom` / `right`.
Thereby the inner `div` gets positioned via (negative) margin based on its natural position as if it was positioned using `position: absolute`.