View Single Post
Old 07.02.2007, 02:29   #30 (permalink)
andi.martin
Baby Mamber
 
Join Date: Feb 2007
Posts: 2
andi.martin is on a distinguished road
Default Re: Main Menu Image hack

Quote:
Originally Posted by ablewave View Post
Hi there, thanks for the quick reply. This worked for me:
Code:
a.mainlevel img {
	text-decoration: none;
	margin: 0;
	border: 0;
	margin-right: -4px;
}
That managed to pull everything together tightly. I'd prefer to actually "solve" the problem, but this was good enough for a quick fix!
I believe i've sussed your problem.

I copied and pasted my page source into a new dreamweaver document, clicked on the space and got quite a surprise.

This is the output of my source, anyone else with the problem want to confirm they have the same?

So, the menu begins with a fairly standard table opening:

Code:
<table width="100%" border="0" cellpadding="0" cellspacing="1">
<tr>
<td nowrap="nowrap">
And for each menu item it writes....

Code:
<span class="mainlevel-nav">  </span>
<a href="index.php?option=com_frontpage&amp;Itemid=28" class="mainlevel-nav" >
<img src="http://www.mydomain.com/images/stories/mnu1.gif" border="0" alt="Home blank"/> 
<a href="index.php?option=com_frontpage&amp;Itemid=28" class="mainlevel-nav" >
</a>
So yeah, that's your bug. Too many link tags.

I guess it was missed as the output was across one long line.

Anyway, am off to bed now, if anyone wants to find a fix while i'm sleeping, feel free, otherwise I guess i'll post it once I check it tomorrow.
andi.martin is offline   Reply With Quote