Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8147181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:15:49+00:00 2026-06-06T14:15:49+00:00

I am using qTip 2 to display a larger image on hover and it

  • 0

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
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:15:50+00:00Added an answer on June 6, 2026 at 2:15 pm

    you only have to change the max-width of your css file:

    .ui-tooltip, .qtip{
        max-width: 900px; /* Change this? */
    }
    

    See this example at jsfiddle

    HTML:

    <p>
    <img src="http://www.dummyimage.com/50x50/4c6aff/000000.png&text=1" data-pic="http://www.dummyimage.com/600x600/4c6aff/000000.png&text=1">
    <img src="http://www.dummyimage.com/50x50/4c6aff/000000.png&text=2" data-pic="http://www.dummyimage.com/300x300/4c6aff/000000.png&text=2">
        <img src="http://www.dummyimage.com/50x50/4c6aff/000000.png&text=3" data-pic="http://www.dummyimage.com/150x150/4c6aff/000000.png&text=3">
    </p>
    

    JAVASCRIPT

    $(function() {
        $("img").each(function() {
            $(this).qtip({
                content: {
                    text: function(api) {
                        return "<img src='" + $(this).attr("data-pic") + "' class='dit'>";
                    }
                }
            });
        });
    });​
    

    CSS

    p {
        margin-top: 50px;
        margin-left: 100px;
    }
    img {
        padding: 10px;
    }
    .ui-tooltip, .qtip{
        max-width: 10000px; /* Change this? */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a qTip that I'm using to display data with. It's working great
I'm using qtip ( http://craigsworks.com/projects/qtip/ ) to make tooltips. Now I need to show
I'm using bxcarousel to show a bunch of images. Each image has a tooltip,
I am using qTip: http://craigsworks.com/projects/qtip2 and my current problem is that when I hover
I am trying to display google map as a tooltip using qTip jquery plugin.
i'm using qtip in this way: $('#div').qtip({content:CONTENT,show: {event: false,ready: true},hide:false,position: {at: 'bottom left'}}); My
I'm using qTip 1.0 and want to set the maxHeight, but I don't see
I'm using jQuery ui Datepicker to display a yearly inline calendar full of special
I'm using the jQuery qTip to show individual users and their votes when an
Hey I'm a using a Jquery plugin called qTip to create an image rollover

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.