Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum Width of jQuery UI Tooltip widget

Tags:

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?

like image 608
sl3dg3 Avatar asked Oct 18 '12 14:10

sl3dg3


1 Answers

Based on Senni's reply, I added following to a separate CSS-file:

div.ui-tooltip {     max-width: 400px; } 

A sidenote: Make sure your separate CSS follows after the ui-css, otherwise there will be no effect. Otherwise you also could use the !important - marker.

like image 135
sl3dg3 Avatar answered Sep 29 '22 16:09

sl3dg3