Form inside tooltip?
I want to place a form inside a tooltip, but CSS-only tooltips are something like this:
<a>Anchor<span>Tooltip content here</span></a>
...which of course would be this:
...which works, but apparently isn't good standard.
What do I do?
I want to put any HTML, including <div>'s in the tooltip.
That's correct, using block elements inside inline elements is "incorrect".
Originally Posted by johnsmith153
You can just wrap the tooltip in a
cursor: pointer; /* ? don't know why you wrapped a form in <a> */
By your original code, if the form content was clicked it would go to the <a> link. Then what's the purpose of a form?
<div><!-- form content --></div>