I use jQuery UI\'s new Tooltip and having trouble with figuring out how to set a maximum width of the tooltip. I guess it should be done with position, but how?
As pointed out by the jQuery UI api, the best you can do is override the classes ui-tooltip and ui-tooltip-content this way:
.ui-tooltip { /* tooltip container box */ max-width: your value !important; } .ui-tooltip-content { /* tooltip content */ max-width: your value !important; }
Hope this helps!