en.javascript.info/2-ui/1-document/11-coordinates/3-position-at-absolute/solution.md
2017-09-03 17:28:52 +02:00

4 lines
250 B
Markdown

The solution is actually pretty simple:
- Use `position:absolute` in CSS instead of `position:fixed` for `.note`.
- Use the function [getCoords()](info:coordinates#getCoords) from the chapter <info:coordinates> to get document-relative coordinates.