Forum Moderators: not2easy
I have a leftmenu navigation (width: 143px) with boxes inside it. Each box has a black line above and below it. This line needs to be only 1px height. Basically it works in IE, but in Firefox the cell is displayed at aprox 1.2em line height.
I have tried setting 1px height on td and tr with black background, then in the cell the spacer is set to 1px height.
<tr><td class="oh_crap"><img src="/images/generic/spacer.gif" width="143" height="1" alt=""></td></tr>
Prob has to do with Style inheritance overriding... (well, it def does) when i view file alone on local machine it looks perfect. I have tried overriding styles and everything else, but no luck. Any ideas would be awesome - thanks!
PS i also tried
. oh_crap {height: 1px; line-height: 1px; font-size: 1px;} etc.
table { border-top: 1px Solid #000; }
table td { border-bottom: 1px Solid #000; }
<table cellspacing="0">
<tr>
<td>test</td>
</tr>
<tr>
<td>row 2</td>
</tr>
</table>