views:

254

answers:

3

hi,

I'm using qTip jquery-plugin for my tooltips.

I cannot change the font-size of the tooltips. This is the code.. any number 2..4..8 produces the same results.

$('.option img[title]').qtip({  
    style: { name: 'light', border: {width: 0}, title: { 'font-size': 2 } },        
        position: {
            corner: {
                target: 'topMiddle',
                tooltip: 'bottomMiddle'
                }
        }             
    });

thanks

A: 

Try removing the quotes around font-size

style: { name: 'light', border: {width: 0}, title: { font-size: 2 } }
SpikETidE
I tried and I got this error: "missing : after property id"
Patrick
A: 

I solved with CSS:

.qtip-content {
    font-size:12px;
}
Patrick
A: 

You need to add the "px" and you can add any css property to your tooltip but you have to put it in quotation marks....so try this (it worked for me)

'font-size' : '12px'

piesrtasty