• Resolved cantabber

    (@cantabber)


    Hello CEd,

    I have tooltips that contain only an image, and clicking on the popped-up image takes you to whatever URL I’ve linked it to. My default borders are 2px, with 5px padding, 0px shadow, and border radius 4px. If I want the image to display in the tooltip at exactly 100% with the padding and borders added around the outside, should I specify the image’s width for my tooltip width, or do I need to add the extra 10px for the L+R padding and 4px for the L+R borders, to avoid reducing the size of the image? I haven’t been able to decide which is correct, so I thought I’d ask.

    Thanks for all your work.

    cantabber

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author CeiKay

    (@ced1870)

    Hi
    the size of the tooltip does not include the border/padding
    so if you have a 140px image, the tooltip shall be set at 140px (inner content width). It will show larger, because the borders and padding will be added
    CEd

    Thread Starter cantabber

    (@cantabber)

    Excellent, that makes it easy.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Specifying width for an image tooltip with padding/borders’ is closed to new replies.