jQuery UI Widgets › Forums › Dialogs and Notifications › Tooltip, Notification, Popover › Width of ToolTip
Tagged: jQuery, jqwidgets, Tooltip
This topic contains 1 reply, has 2 voices, and was last updated by Minko 12 years, 6 months ago.
Hello,
Is there an opportunity to set the width/height of a tool tip? I tried it, with CSS, but it does not work.
Best Regards, Adrian
Hello Adrian,
for setting jqxTooltip’s size you can use the following approach:
$("#jqxTooltip").jqxTooltip({ showHtml: true });$("#jqxTooltip").jqxTooltip('add', element, '<div style="width: 100px; height: 50px;">Content</div>');
The code above creates tooltip which content could be HTML (this is because of setting showHtml property to true). For tooltip’s content is used a div element with the desired size of the tooltip: 100×50.
Best regards, Minko
jQWidgets Team http://jqwidgets.com/
You must be logged in to reply to this topic.