Position the note inside (absolute)
Extend the previous task Show a note near the element (absolute): teach the function
positionAt(anchor, position, elem) to insert
elem inside the
New values for
bottom-out– work the same as before, they insert the
anchor: stick it to the upper/right/bottom edge.
// shows the note above blockquote positionAt(blockquote, "top-out", note); // shows the note inside blockquote, at the top positionAt(blockquote, "top-in", note);
As the source code, take the solution of the task Show a note near the element (absolute).