Looking for a solution where I can have a floating div that can be moved up and down using javascript while the text wraps around it seamlessly.
Similar to how an object positioned in a word document behaves, I want the text to flow around the div both above and below it as needed.
After some research, it seems that achieving this effect is only possible if the div is contained within the same parent element as the text. Moving the div up and down would involve repositioning it within the text itself, such as moving a sentence from behind to in front of the div.
Attempts like using top margin only extend the block the text wraps around, while using position relative results in the text flowing around the div's original position and the div overlapping the text. This makes it challenging to achieve the desired outcome.
Are there any HTML/CSS techniques or plugins available that could help achieve this effect as described?
Thank you.