Forum Moderators: open
<img src="images/spacer.gif" width="134" height="7" border="0" alt="" /><br />
<a href="something"><img src="images/mainnav_1.gif" alt="" width="140" height="18" border="0" /></a><br />
<img src="images/spacer.gif" width="134" height="7" border="0" alt="" /><br />
<a href="something"><img src="images/mainnav_2.gif" alt="" width="140" height="18" border="0" /></a><br />
<img src="images/spacer.gif" width="134" height="7" border="0" alt="" /><br />
1) Since the navigation images are both 140 pixels wide, make the spacer image 140 pixels wide too ..
2) If that doesn't solve the problem (which depends on the rest of the code on the page) there is a very simple solution .. Simply put all the code on the same line ..
3) Since making long lines isn't the best solution to anything .. Why don't you remove spacer.gif, and replace it with text (a ) or a DIV 7 pixels high?
<img style="display: block;" src="images/mainnav_1.gif" alt="" width="140" height="18" border="0" />
Your problem sounds close to a problem I had a while back, only thing is this was a 3 pixel wide gap not 7?
--
The display: block declaration should work for your purposes, but remember to take out your line breaks (they'll just add additional space once you declare the display value).
(edited by: moonbiter at 10:53 pm (utc) on May 1, 2002)