My goal is to create a button that, when hovered over, displays a div. However, I am encountering challenges with the width and position of this div.
The issue is illustrated in the images below and in the accompanying jsfiddle. When I set the positioning of the div to absolute relative to the button, it seems that its max-width is limited by the width of the button itself. This results in a small hover div when the button is small. How can I ensure that the hover div's width adjusts dynamically without being restricted by the button size?