I am using qTip 2 to display a larger image on hover and it semi works. The image shows but not the full width. How do I get it to show full width?
Code:
HTML
<img src="img.jpg" usemap="#Map" class="center" style="width:900px;"
border="0" />
<map name="Map" id="Map">
<area class="1" shape="rect" coords="4,3,225,150" />
</map>
JS
var $j = jQuery.noConflict();
$j('.1').qtip({
content: '<img src="img1.jpg" width="600" />',
position: {
my: 'left top',
at: 'right top',
target: $j('.1')
},
style: {
classes:
'ui-tooltip-tipsy'
}
});
What should I do to get the image to show full width?
I tried adding this code and it did not work:
tip: {
width: 600
}
you only have to change the
max-widthof your css file:See this example at jsfiddle
HTML:
JAVASCRIPT
CSS