O'Reilly logo

jQuery for Designers : Beginner's Guide - Second Edition by Natalie MacLees

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – customizing PowerTip

Let's take a look at some of the options we have to customize PowerTip and how we can use them. We'll keep working with the files we set up in the preceding example:

  1. Let's say that we want to change the position of the tooltip. PowerTip gives us plenty of options to position tooltips on our page, as follows:
    Time for action – customizing PowerTip

    How do we tell PowerTip where we want our tooltips to appear? Let's go back to that line of code in our scripts.js file where we called the powerTip method to create the custom tooltips:

    $('.gallery img').powerTip();

    Remember in Chapter 1, Designer, Meet jQuery, we talked about how we can pass things to methods ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required