The amp-validator disallows using position: fixed
in style sheets.
Is there another way to make a header that is attached to the top and does not scroll in an amp-conform way?
EDIT:
Full example:
<div style="background:red;position:fixed;right:-50px;padding-left:50px;padding-right:50px;transform:translateY(100%) rotate(45deg)">
<h5>Text</h5>
</div>
Here is the error message I am getting:
[ warn ] Amp Validation
/ error CSS syntax error in tag 'div' - the property 'position' is set to the disallowed value 'fixed'. https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/style_pages