3 ms·
position: relative adds a fixed offset to the position the element would have been placed in normally, but position: anchor can be used to place an element near
by paavohtl 2y ago
position: relative adds a fixed offset to the position the element would have been placed in normally, but position: anchor can be used to place an element near any arbitrary element, regardless of its place in the DOM hierarchy.