Is it possible to have an HTML element like a span or div on the page that occupies no space? I want to be able to toggle its visibility without affecting the layout, such as having a label appear next to a table row when hovered over without taking up extra space. Any suggestions on how to achieve this?
- I am looking for a CSS-only solution as I cannot use JavaScript.
- I have tried using float, but it does not allow elements to overlap, which is something I do want in this case.