This problem is best explained by example, so have included 'before' and 'after' code...
The nav bar in my template is made up of two heavy lines with the buttons in between -
Notice how the 'shim' makes the height of the nav bar 26 pixels. Now I want to put in some buttons that sit perfectly between the two bars - so I made then 26 pixels high.
However, when you set the height of the button to 26 (see code below) there are a few extra pixels of space inserted and you can see the shim is now smaller than the gap.
So what is causing this extra space???
The nav bar in my template is made up of two heavy lines with the buttons in between -
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" bgcolor="000000"><img src="shim.gif" height="2"></td> </tr> <tr> <td width="10" bgcolor="gray" ><img src="shim.gif" height="26" width="10"></td> <td valign="top" align="left" bgcolor="gray" ><img src="crazy-daves-contact-button-1.gif" alt="Contact" name="mycontact" height="18" width="110" border="0"></a> </td> </tr> <tr> <td colspan="2" bgcolor="000000"><img src="shim.gif" height="2"></td> </tr> </table>
However, when you set the height of the button to 26 (see code below) there are a few extra pixels of space inserted and you can see the shim is now smaller than the gap.
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2" bgcolor="000000"><img src="shim.gif" height="2"></td> </tr> <tr> <td width="10" bgcolor="gray" ><img src="shim.gif" height="26" width="10"></td> <td valign="top" align="left" bgcolor="gray" ><img src="crazy-daves-contact-button-1.gif" alt="Contact" name="mycontact" height="26" width="110" border="0"></a> </td> </tr> <tr> <td colspan="2" bgcolor="000000"><img src="shim.gif" height="2"></td> </tr> </table>
Comment