Specifying width for an image tooltip with padding/borders
-
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)
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.