T
Tim Streater
Here's another one - I have a button with a small image in it thus:
<button id="plusbut" type='button'><img src='iLetter-Icons/plusbut.png'
style="padding-top: 2px;"></button>
I added the padding-top as it seemed the only way to have the image
properly centred vertically in the button shape. I've checked the image
by blowing it up in Preview, and it's a plus-sign 18 x 18 pixels with
the image dead-centre in the 18 by 18. But unless I add the padding-top,
it sits a little high in the button. The padding makes the button
fractionally taller and thus centres the image.
But this must be a hack, shirley. What should I be doing?
<button id="plusbut" type='button'><img src='iLetter-Icons/plusbut.png'
style="padding-top: 2px;"></button>
I added the padding-top as it seemed the only way to have the image
properly centred vertically in the button shape. I've checked the image
by blowing it up in Preview, and it's a plus-sign 18 x 18 pixels with
the image dead-centre in the 18 by 18. But unless I add the padding-top,
it sits a little high in the button. The padding makes the button
fractionally taller and thus centres the image.
But this must be a hack, shirley. What should I be doing?