M.Eskandari M.Eskandari - 2 months ago 7x
jQuery Question

How to change tooltip style in jQuery vmap?

I created a map with jQuery.vmap
and set the

showTooltip: true
By default, this tooltip has a black background and white font;
I can't inspect element tooltip in Chrome in order to change css style for it.

How can I change the tooltip style in jQuery.vmap?


Looking at the supplied CSS, it seems that the tooltips are called "labels". The CSS to edit (or override) is:

    position: absolute;
    display: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #292929;
    color: white;
    font-family: sans-serif, Verdana;
    font-size: smaller;
    padding: 3px;